Class: ThemeJuice::Tasks::DotEnv
- Inherits:
-
ThemeJuice::Task
- Object
- ThemeJuice::Task
- ThemeJuice::Tasks::DotEnv
- Defined in:
- lib/theme-juice/tasks/dot_env.rb
Instance Attribute Summary
Attributes inherited from ThemeJuice::Task
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(opts = {}) ⇒ DotEnv
constructor
A new instance of DotEnv.
- #unexecute ⇒ Object
Methods inherited from ThemeJuice::Task
Constructor Details
#initialize(opts = {}) ⇒ DotEnv
Returns a new instance of DotEnv.
7 8 9 |
# File 'lib/theme-juice/tasks/dot_env.rb', line 7 def initialize(opts = {}) super end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 |
# File 'lib/theme-juice/tasks/dot_env.rb', line 11 def execute return if @project.no_env || @project.no_wp create_dot_env_file end |
#unexecute ⇒ Object
17 18 19 |
# File 'lib/theme-juice/tasks/dot_env.rb', line 17 def unexecute remove_dot_env_file end |