Class: Sassquatch::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/sassquatch/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/sassquatch/cli.rb', line 5

def self.exit_on_failure?
  true
end

Instance Method Details

#installObject



10
11
12
13
14
# File 'lib/sassquatch/cli.rb', line 10

def install
  generator = Generator.new
  generator.destination_root = Dir.pwd
  generator.invoke_all
end

#versionObject



18
19
20
# File 'lib/sassquatch/cli.rb', line 18

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