Class: SourceFile

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/jquery-autocomplete-rails/source_file.rb

Instance Method Summary collapse

Instance Method Details

#cleanupObject



18
19
20
21
# File 'lib/jquery-autocomplete-rails/source_file.rb', line 18

def cleanup
  self.destination_root = 'vendor/assets'
  remove_file 'package.json'
end

#fetch(remote, branch) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/jquery-autocomplete-rails/source_file.rb', line 8

def fetch remote, branch
  self.destination_root = 'vendor/assets'
  get "#{remote}/raw/#{branch}/dist/jquery.autocomplete.js", 'javascripts/jquery.autocomplete.js'
  get "#{remote}/raw/#{branch}/dist/jquery.autocomplete.min.js", 'javascripts/jquery.autocomplete.min.js'
  get "#{remote}/raw/#{branch}/package.json", 'package.json'
  bump_version
end