Class: Tzispa::Commands::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/tzispa/commands/command.rb

Direct Known Subclasses

Api, App, Console, Rig, Server

Constant Summary collapse

NO_PROJECT_FOLDER =
'You must be located in a Tzispa project folder to run this command'

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Command

Returns a new instance of Command.

Raises:



12
13
14
15
16
# File 'lib/tzispa/commands/command.rb', line 12

def initialize(options)
  raise NO_PROJECT_FOLDER unless project_folder?
  Tzispa::Environment.opts = options
  @environment = Tzispa::Environment.instance
end