class GrokCLI::Docker::Rails::Rake
Public Class Methods
new(config = GrokCLI::Docker::Configuration.new)
click to toggle source
# File lib/grok_cli/docker/rails/rake.rb, line 3 def initialize(config = GrokCLI::Docker::Configuration.new) @config = config end
Public Instance Methods
execute(rake_command = "")
click to toggle source
# File lib/grok_cli/docker/rails/rake.rb, line 7 def execute(rake_command = "") GrokCLI::Docker::Boot.new.execute GrokCLI::Docker::UpdateEtcHosts.new.execute system <<~CMD eval "$(docker-machine env #{@config.machine_name})" docker-compose run --rm web bundle exec rake #{rake_command} CMD end