First push before 🥚

This commit is contained in:
Dane Everitt 2017-10-06 21:22:32 -05:00
parent 0b3c0f6d5a
commit 344c1a9885
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
11 changed files with 36 additions and 158 deletions

View file

@ -34,8 +34,6 @@ class Service extends Model implements CleansAttributes, ValidableContract
protected $fillable = [
'name',
'description',
'startup',
'index_file',
];
/**
@ -45,8 +43,6 @@ class Service extends Model implements CleansAttributes, ValidableContract
'author' => 'required',
'name' => 'required',
'description' => 'sometimes',
'startup' => 'sometimes',
'index_file' => 'required',
];
/**
@ -56,8 +52,6 @@ class Service extends Model implements CleansAttributes, ValidableContract
'author' => 'email',
'name' => 'string|max:255',
'description' => 'nullable|string',
'startup' => 'nullable|string',
'index_file' => 'string',
];
/**

View file

@ -107,17 +107,6 @@ class ServiceOption extends Model implements CleansAttributes, ValidableContract
'docker_image' => null,
];
/**
* Returns the display startup string for the option and will use the parent
* service one if the option does not have one defined.
*
* @return string
*/
public function getDisplayStartupAttribute()
{
return (is_null($this->startup)) ? $this->service->startup : $this->startup;
}
/**
* Returns the install script for the option; if option is copying from another
* it will return the copied script.