Class: Nucleon::Action::Project::Update

Inherits:
Object
  • Object
show all
Includes:
Mixin::Action::Project
Defined in:
lib/nucleon/action/project/update.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Mixin::Action::Project

#project_config, #project_ignore, #project_load

Class Method Details

.describeObject


Info



12
13
14
# File 'lib/nucleon/action/project/update.rb', line 12

def self.describe
  super(:project, :update, 900)
end

Instance Method Details

#configureObject


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

#executeObject


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