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

- old
+ new

@@ -12,11 +12,12 @@ def configure super do codes :project_failure, :delete_failure, :push_failure - + + register :path, :str, Dir.pwd register :sub_path, :str, nil project_config push_config end @@ -34,13 +35,13 @@ #----------------------------------------------------------------------------- # Operations def execute - super do |node, network| + super do info('nucleon.actions.remove.start') - if project = project_load(Dir.pwd, false) + if project = project_load(settings[:path], false) if project.delete_subproject(settings[:sub_path]) myself.status = code.push_failure unless push(project) else myself.status = code.delete_failure end