Module: Really::Commands::TextFileCommands
- Defined in:
- lib/really/commands/text_file_commands.rb
Instance Method Summary collapse
- #append_text_to_file(text, file, options = {}) ⇒ Object
- #prepend_text_to_file(text, file, options = {}) ⇒ Object
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, = {}) # FIXME: implement command "echo 'we should append some text to '#{file}' here!'", 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, = {}) # FIXME: implement command "echo 'we should prepend some text to '#{file}' here!'", end |