Method: Stash#save
- Defined in:
- lib/exercism/cli/stash.rb
#save(file) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/exercism/cli/stash.rb', line 5 def save(file) require 'exercism' begin puts file puts File.read file response = Exercism::Api.new([:host], Exercism.user).save_stash('user/assignments/stash', file) say "Stash file has been saved" rescue Exception => e puts "Error submitting stash" puts e. end end |