lib/nucleon/action/create.rb in nucleon-0.1.9 vs lib/nucleon/action/create.rb in nucleon-0.1.10

- old
+ new

@@ -10,13 +10,14 @@ def configure super do codes :project_failure - register :path, :str, Dir.pwd - + register :path, :str, Dir.pwd project_config + + config[:project_reference].default = '' end end #--- @@ -26,20 +27,13 @@ #----------------------------------------------------------------------------- # Operations def execute - super do |node, network| + super do info('nucleon.actions.create.start') - project = Nucleon.project(extended_config(:project, { - :create => true, - :directory => settings[:path], - :url => settings[:project_reference], - :revision => settings[:revision], - :pull => true - }), settings[:project_provider]) - + project = project_load(settings[:path], true, true) myself.status = code.project_failure unless project end end end end