Class: Bourbon::Generator

Inherits:
Thor
  • Object
show all
Defined in:
lib/bourbon/generator.rb

Instance Method Summary collapse

Instance Method Details

#installObject



12
13
14
15
16
17
18
19
# File 'lib/bourbon/generator.rb', line 12

def install
  if bourbon_files_already_exist? && !options[:force]
    puts "Bourbon files already installed, doing nothing."
  else
    install_files
    puts "Bourbon files installed to #{install_path}/"
  end
end

#updateObject



23
24
25
26
27
28
29
30
31
# File 'lib/bourbon/generator.rb', line 23

def update
  if bourbon_files_already_exist?
    remove_bourbon_directory
    install_files
    puts "Bourbon files updated."
  else
    puts "No existing bourbon installation. Doing nothing."
  end
end

#versionObject



34
35
36
# File 'lib/bourbon/generator.rb', line 34

def version
  say "Bourbon #{Bourbon::VERSION}"
end