Class: SproutPunk::Commands::Base

Inherits:
Thor
  • Object
show all
Includes:
Helpers, Thor::Actions
Defined in:
lib/sproutpunk/commands/base.rb

Direct Known Subclasses

SproutPunk::CLI, Assets, Builds, Config

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helpers

#_config

Constructor Details

#initializeBase

Returns a new instance of Base.



8
9
10
11
12
13
14
# File 'lib/sproutpunk/commands/base.rb', line 8

def initialize(*)
  super
  if options[:version]
    say "SproutPunk v#{SproutPunk::VERSION}", :red
    exit
  end
end

Class Method Details

.command_set(name, usage, desc) ⇒ Object



16
17
18
# File 'lib/sproutpunk/commands/base.rb', line 16

def self.command_set(name, usage, desc)
  SproutPunk::CLI.register(self, name, usage, desc)
end