Class: DevelopWithPassion::Expander::ShellActionAgainstFile

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

Instance Method Summary collapse

Constructor Details

#initialize(cmd) ⇒ ShellActionAgainstFile

Returns a new instance of ShellActionAgainstFile.



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

def initialize(cmd)
  @cmd = cmd
end

Instance Method Details

#run_using(file_name) ⇒ Object



7
8
9
# File 'lib/developwithpassion_expander/shell_action_against_file.rb', line 7

def run_using(file_name)
  Shell.instance.run("#{@cmd} #{file_name}")
end