lib/rspec-system/helpers/rcp.rb in rspec-system-2.5.1 vs lib/rspec-system/helpers/rcp.rb in rspec-system-2.6.0
- old
+ new
@@ -5,11 +5,11 @@
class Rcp < RSpecSystem::Helper
name 'rcp'
properties :success
def initialize(opts, clr, &block)
- ns = rspec_system_node_set
+ ns = RSpecSystem::NodeSet.create
opts = {
:source_path => opts[:sp],
:destination_path => opts[:dp],
:dp => opts[:destination_path],
:sp => opts[:source_path],
@@ -30,13 +30,10 @@
super(opts, clr, &block)
end
# Gathers new results by executing the resource action
def execute
- ns = rspec_system_node_set
- d = opts[:d]
- sp = opts[:sp]
- dp = opts[:dp]
+ ns = RSpecSystem::NodeSet.create
result = ns.rcp(opts)
{ :success => result }
end
end