Module: Really::Commands::TextFileCommands

Defined in:
lib/really/commands/text_file_commands.rb

Instance Method Summary collapse

Instance Method Details

#append_text_to_file(text, file, options = {}) ⇒ Object



4
5
6
7
# File 'lib/really/commands/text_file_commands.rb', line 4

def append_text_to_file(text, file, options = {})
  # FIXME: implement
  command "echo 'we should append some text to '#{file}' here!'", options
end

#prepend_text_to_file(text, file, options = {}) ⇒ Object



9
10
11
12
# File 'lib/really/commands/text_file_commands.rb', line 9

def prepend_text_to_file(text, file, options = {})
  # FIXME: implement
  command "echo 'we should prepend some text to '#{file}' here!'", options
end