Class: SourceFile
- Inherits:
-
Thor
- Object
- Thor
- SourceFile
- Includes:
- Thor::Actions
- Defined in:
- lib/introjs-rails/source_file.rb
Instance Method Summary collapse
Instance Method Details
#fetch ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/introjs-rails/source_file.rb', line 9 def fetch = tag = select("Which tag do you want to fetch?", ) self.destination_root = "app/assets" remote = "https://github.com/usablica/intro.js" get "#{remote}/raw/#{tag}/minified/intro.min.js", "javascripts/introjs.js" get "#{remote}/raw/#{tag}/minified/introjs.min.css", "stylesheets/introjs.css" end |