Class: Nucleon::Action::Project::Update
- Inherits:
-
Object
- Object
- Nucleon::Action::Project::Update
- Includes:
- Mixin::Action::Project
- Defined in:
- lib/nucleon/action/project/update.rb
Class Method Summary collapse
-
.describe ⇒ Object
—————————————————————————– Info.
Instance Method Summary collapse
-
#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/update.rb', line 12 def self.describe super(:project, :update, 900) end |
Instance Method Details
#configure ⇒ Object
Settings
19 20 21 22 23 24 25 26 |
# File 'lib/nucleon/action/project/update.rb', line 19 def configure super do codes :project_failure register_str :path, Dir.pwd project_config end end |
#execute ⇒ Object
Operations
31 32 33 34 35 36 37 38 |
# File 'lib/nucleon/action/project/update.rb', line 31 def execute super do info('start') project = project_load(settings[:path], false, true) myself.status = code.project_failure unless project end end |