Class: Nucleon::Action::Project::Create

Inherits:
Object
  • Object
show all
Includes:
Mixin::Action::Project
Defined in:
lib/nucleon/action/project/create.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/create.rb', line 12

def self.describe
  super(:project, :create, 1000)
end

Instance Method Details

#argumentsObject




32
33
34
# File 'lib/nucleon/action/project/create.rb', line 32

def arguments
  [ :project_reference ]
end

#configureObject


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

#executeObject


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