Class: Nesta::Commands::Theme::Enable
- Inherits:
-
Object
- Object
- Nesta::Commands::Theme::Enable
- Defined in:
- lib/nesta/commands/theme/enable.rb
Instance Method Summary collapse
- #execute(process) ⇒ Object
-
#initialize(*args) ⇒ Enable
constructor
A new instance of Enable.
Constructor Details
#initialize(*args) ⇒ Enable
Returns a new instance of Enable.
7 8 9 10 11 12 |
# File 'lib/nesta/commands/theme/enable.rb', line 7 def initialize(*args) name = args.shift = args.shift || {} name.nil? && (raise UsageError.new('name not specified')) @name = name end |
Instance Method Details
#execute(process) ⇒ Object
14 15 16 |
# File 'lib/nesta/commands/theme/enable.rb', line 14 def execute(process) Nesta::ConfigFile.new.set_value('theme', @name) end |