Class: ThemeJuice::Tasks::Landrush
- Inherits:
-
Entry
- Object
- ThemeJuice::Task
- Entry
- ThemeJuice::Tasks::Landrush
- Defined in:
- lib/theme-juice/tasks/landrush.rb
Instance Attribute Summary
Attributes inherited from Entry
Attributes inherited from ThemeJuice::Task
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(opts = {}) ⇒ Landrush
constructor
A new instance of Landrush.
- #unexecute ⇒ Object
Methods inherited from ThemeJuice::Task
Constructor Details
#initialize(opts = {}) ⇒ Landrush
Returns a new instance of Landrush.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/theme-juice/tasks/landrush.rb', line 7 def initialize(opts = {}) super @entry = { :project => "landrush", :file => "#{@env.vm_path}/Customfile", :name => "landrush", :id => "LR" } end |
Instance Method Details
#execute ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/theme-juice/tasks/landrush.rb', line 18 def execute return if @env.no_landrush create_entry_file create_entry do %Q{config.landrush.enabled = true config.landrush.tld = 'dev' config.landrush.host 'graft.dev', '#{@env.vm_ip}'} end end |
#unexecute ⇒ Object
29 30 31 |
# File 'lib/theme-juice/tasks/landrush.rb', line 29 def unexecute remove_entry end |