Class: SourceFile
- Inherits:
-
Thor
- Object
- Thor
- SourceFile
- Includes:
- Thor::Actions
- Defined in:
- lib/autotab-rails/source_file.rb
Instance Method Summary collapse
Instance Method Details
#cleanup ⇒ Object
19 20 21 22 |
# File 'lib/autotab-rails/source_file.rb', line 19 def cleanup self.destination_root = 'vendor/assets' remove_file 'bower.json' end |
#fetch(remote, branch) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/autotab-rails/source_file.rb', line 10 def fetch(remote, branch) self.destination_root = 'vendor/assets' get "#{remote}/raw/#{branch}/js/jquery.autotab.js", 'javascripts/autotab-jquery.js' get "#{remote}/raw/#{branch}/js/jquery.autotab.min.js", 'javascripts/autotab-jquery.min.js' get "#{remote}/raw/#{branch}/bower.json", 'bower.json' bump_version end |