Class: GrokCLI::Docker::WordPress::Setup
- Inherits:
-
Object
- Object
- GrokCLI::Docker::WordPress::Setup
- Defined in:
- lib/grok_cli/docker/wordpress/setup.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(config = GrokCLI::Docker::Configuration.new) ⇒ Setup
constructor
A new instance of Setup.
Constructor Details
#initialize(config = GrokCLI::Docker::Configuration.new) ⇒ Setup
Returns a new instance of Setup.
3 4 5 |
# File 'lib/grok_cli/docker/wordpress/setup.rb', line 3 def initialize(config = GrokCLI::Docker::Configuration.new) @config = config end |
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/grok_cli/docker/wordpress/setup.rb', line 7 def execute system <<~CMD docker-machine create #{@config.machine_name} --driver virtualbox eval "$(docker-machine env #{@config.machine_name})" docker-compose run --rm web sleep 1 CMD end |