Class: DevelopWithPassion::Expander::CopyToTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/developwithpassion_expander/copy_to_target.rb

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ CopyToTarget

Returns a new instance of CopyToTarget.



4
5
6
# File 'lib/developwithpassion_expander/copy_to_target.rb', line 4

def initialize(target)
  @target = target
end

Instance Method Details

#run_using(source_item) ⇒ Object



8
9
10
# File 'lib/developwithpassion_expander/copy_to_target.rb', line 8

def run_using(source_item)
  Shell.instance.run("cp -rf #{source_item} #{@target}")
end