module Bundler::Thor::Actions

def prepend_to_file(path, *args, &block)


end
'config.gem "rspec"'
prepend_to_file 'config/environments/test.rb' do

prepend_to_file 'config/environments/test.rb', 'config.gem "rspec"'

==== Example

config:: give :verbose => false to not log the status.
data:: the data to prepend to the file, can be also given as a block.
path:: path of the file to be changed
==== Parameters

Prepend text to a file. Since it depends on insert_into_file, it's reversible.
def prepend_to_file(path, *args, &block)
  config = args.last.is_a?(Hash) ? args.pop : {}
  config[:after] = /\A/
  insert_into_file(path, *(args << config), &block)
end