Sha256: bdd8847cee4c9a365e22e81c0b5355a7c1d9f3ddbf38880a71bc6e67e4c653b3

Contents?: true

Size: 682 Bytes

Versions: 10

Compression:

Stored size: 682 Bytes

Contents

module Nucleon
module Action
class Update < Nucleon.plugin_class(:action)
  
  include Mixin::Action::Project
 
  #-----------------------------------------------------------------------------
  # Settings
  
  def configure
    super do
      codes :project_failure
      
      register :path, :str, Dir.pwd       
      project_config
    end
  end
  
  #-----------------------------------------------------------------------------
  # Operations
   
  def execute
    super do
      info('nucleon.actions.update.start')
      
      project       = project_load(settings[:path], false, true)
      myself.status = code.project_failure unless project
    end
  end
end
end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
nucleon-0.1.19 lib/nucleon/action/update.rb
nucleon-0.1.18 lib/nucleon/action/update.rb
nucleon-0.1.17 lib/nucleon/action/update.rb
nucleon-0.1.16 lib/nucleon/action/update.rb
nucleon-0.1.15 lib/nucleon/action/update.rb
nucleon-0.1.14 lib/nucleon/action/update.rb
nucleon-0.1.13 lib/nucleon/action/update.rb
nucleon-0.1.12 lib/nucleon/action/update.rb
nucleon-0.1.11 lib/nucleon/action/update.rb
nucleon-0.1.10 lib/nucleon/action/update.rb