Sha256: 15deac79547a6ae9e172a3a40ae2981ee2e9b5b59d74387b1d208401237b5aab

Contents?: true

Size: 943 Bytes

Versions: 10

Compression:

Stored size: 943 Bytes

Contents

When /^I get help for "([^"]*)"$/ do |app_name|
  @app_name = app_name
  step %(I run `#{app_name} help`)
end

# Add more step definitions here

When /^I start a container named "(.*?)"(?: on network "(.*?)")*$/ do |name, net_name|
  if net_name
    network =  Docker::Network.create(net_name)
    networks << network
  end
  
  alpine = Docker::Image.create('fromImage' => 'alpine')
  options = {
    'name' => name,
    'Cmd' => [ "sh", "-c", "while true; do sleep 1; done" ],
    'Image' => alpine.id
  }
  options['HostConfig'] = { 'NetworkMode' => net_name } if net_name
    
  container = Docker::Container.create(options)
  container.start!
  containers << container
end

When /^I successfully start a sandbox for "(.*?)" with arguments "(.*?)"$/ do |project, args|
  step %Q{I successfully run `env DEBUG=true GLI_DEBUG=true debify sandbox -d ../../#{project} #{args}`}
  containers << Docker::Container.get("#{project}-sandbox")
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
conjur-debify-1.12.0 features/step_definitions/debify_steps.rb
conjur-debify-1.11.5 features/step_definitions/debify_steps.rb
conjur-debify-1.11.4 features/step_definitions/debify_steps.rb
conjur-debify-1.11.3 features/step_definitions/debify_steps.rb
conjur-debify-1.11.2 features/step_definitions/debify_steps.rb
conjur-debify-1.11.1 features/step_definitions/debify_steps.rb
conjur-debify-1.10.3 features/step_definitions/debify_steps.rb
conjur-debify-1.10.2 features/step_definitions/debify_steps.rb
conjur-debify-1.10.1 features/step_definitions/debify_steps.rb
conjur-debify-1.10.0 features/step_definitions/debify_steps.rb