lib/nucleon/action/extract.rb in nucleon-0.1.1 vs lib/nucleon/action/extract.rb in nucleon-0.1.2
- old
+ new
@@ -1,12 +1,12 @@
module Nucleon
module Action
-class Extract < Plugin::Action
+class Extract < Nucleon.plugin_class(:action)
#-----------------------------------------------------------------------------
- # Action settings
+ # Settings
def configure
super do
codes :extract_failure
@@ -33,10 +33,10 @@
def arguments
[ :path, :encoded ]
end
#-----------------------------------------------------------------------------
- # Action operations
+ # Operations
def execute
super do |node, network|
unless @package.extract(settings[:path])
myself.status = code.extract_failure