Class: SourceFile

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

Instance Method Summary collapse

Instance Method Details

#cleanupObject



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

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

#fetchObject



7
8
9
10
11
12
13
14
15
# File 'lib/fondant-rails/source_file.rb', line 7

def fetch
  self.destination_root = 'vendor/assets'
  remote = 'https://raw.github.com/ovenbits-ingredients/fondant/master'
  get "#{remote}/src/fondant.coffee", 'javascripts/fondant.coffee'
  get "#{remote}/src/fondant.scss", 'stylesheets/fondant.scss'
  get "#{remote}/VERSION", 'VERSION'

  bump_version
end