Sha256: 5d3e20d3992bd5fbe0c37257c1f1ff3e216796a1514ba78796c3f50bc8d57358

Contents?: true

Size: 960 Bytes

Versions: 15

Compression:

Stored size: 960 Bytes

Contents

module Nucleon
module Action
module Project
class Create < Nucleon.plugin_class(:nucleon, :action)
  
  include Mixin::Action::Project
  
  #-----------------------------------------------------------------------------
  # Info
  
  def self.describe
    super(:project, :create, 1000)
  end
  
  #-----------------------------------------------------------------------------
  # Settings
  
  def configure
    super do    
      codes :project_failure
      
      register_str :path, Dir.pwd      
      project_config
      
      config[:project_reference].default = ''
    end
  end
  
  #---
  
  def arguments
    [ :project_reference ]
  end
 
  #-----------------------------------------------------------------------------
  # Operations
   
  def execute
    super do
      info('start')
      
      project       = project_load(settings[:path], true, true)
      myself.status = code.project_failure unless project
    end
  end
end
end
end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nucleon-0.2.16 lib/nucleon/action/project/create.rb
nucleon-0.2.15 lib/nucleon/action/project/create.rb
nucleon-0.2.14 lib/nucleon/action/project/create.rb
nucleon-0.2.13 lib/nucleon/action/project/create.rb
nucleon-0.2.12 lib/nucleon/action/project/create.rb
nucleon-0.2.11 lib/nucleon/action/project/create.rb
nucleon-0.2.10 lib/nucleon/action/project/create.rb
nucleon-0.2.9 lib/nucleon/action/project/create.rb
nucleon-0.2.8 lib/nucleon/action/project/create.rb
nucleon-0.2.7 lib/nucleon/action/project/create.rb
nucleon-0.2.6 lib/nucleon/action/project/create.rb
nucleon-0.2.5 lib/nucleon/action/project/create.rb
nucleon-0.2.4 lib/nucleon/action/project/create.rb
nucleon-0.2.3 lib/nucleon/action/project/create.rb
nucleon-0.2.2 lib/nucleon/action/project/create.rb