Class: Nucleon::Action::Project::Create
- Inherits:
-
Object
- Object
- Nucleon::Action::Project::Create
- Includes:
- Mixin::Action::Project
- Defined in:
- lib/nucleon/action/project/create.rb
Class Method Summary collapse
-
.describe ⇒ Object
—————————————————————————– Info.
Instance Method Summary collapse
-
#arguments ⇒ Object
—.
-
#configure ⇒ Object
—————————————————————————– Settings.
-
#execute ⇒ Object
—————————————————————————– Operations.
Methods included from Mixin::Action::Project
#project_config, #project_ignore, #project_load
Class Method Details
.describe ⇒ Object
Info
12 13 14 |
# File 'lib/nucleon/action/project/create.rb', line 12 def self.describe super(:project, :create, 1000) end |
Instance Method Details
#arguments ⇒ Object
32 33 34 |
# File 'lib/nucleon/action/project/create.rb', line 32 def arguments [ :project_reference ] end |
#configure ⇒ Object
Settings
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/nucleon/action/project/create.rb', line 19 def configure super do codes :project_failure register_str :path, Dir.pwd project_config config[:project_reference].default = '' end end |
#execute ⇒ Object
Operations
39 40 41 42 43 44 45 46 |
# File 'lib/nucleon/action/project/create.rb', line 39 def execute super do info('start') project = project_load(settings[:path], true, true) myself.status = code.project_failure unless project end end |