Class: Prepd::Creator

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, ActiveModel::Validations::Callbacks
Defined in:
lib/prepd/cli/commands.rb

Constant Summary collapse

VALID_CLASSES =
%w(workspace cluster project).freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#typeObject

Returns the value of attribute type.



62
63
64
# File 'lib/prepd/cli/commands.rb', line 62

def type
  @type
end

Instance Method Details

#klassObject



72
73
74
# File 'lib/prepd/cli/commands.rb', line 72

def klass
  Kernel.const_get("Prepd::#{type.capitalize}")
end

#set_type_downObject



68
69
70
# File 'lib/prepd/cli/commands.rb', line 68

def set_type_down
  self.type = self.type.downcase
end