Sha256: 2cbcb273b75a58f35c9f4075749cfd4764defc556831cfe1c224c6725369180b

Contents?: true

Size: 1.49 KB

Versions: 4

Compression:

Stored size: 1.49 KB

Contents

def context_exec(command)
  system(command.join(' '))
end

# Étantdonnéque('le projet {word} à une dernière version de disponible dans git') do |project_name|
#   context_exec [project_name, 'once']
  
#   if project_name == deployer.context_name
#     Dir.chdir deployer.context_folder
#   else
#     Dir.chdir File.join(deployer.contexts_container(deployer), project_name)
#   end
# end

Alors('démarrer un simple cycle de {word}') do |project_name|
  context_exec [project_name, 'once'] || abort!('Issue with life cycle')
end

Alors('déployer le projet {word}') do |project_name|
  context_exec [project_name, 'release'] || abort!('Issue with deploy steps')
end

Alors('tester le projet {word}') do |project_name|
  context_exec [project_name, 'test'] || abort!('Issue with testing steps')
end

Étantdonnéque('le projet {word} à du code à updater') do |project_name|
  context_exec [project_name, 'check_code_to_update'] || abort!('Issue to check updated code')
end

Alors('bumper la version du patch de {word}') do |project_name|
  context_exec [project_name, 'bump'] || abort!('Issue with bumping version')
end

Étantdonnéque('le projet {word} à la bonne version d\'installer') do |project_name|
  context_exec [project_name, 'check_installed_version'] || abort!('Issue to check installed version')
end

Étantdonnéque('le projet {word} à une nouvelle version de disponible') do |project_name|
  context_exec [project_name, 'check_new_version'] || abort!('Issue to check newer version available')
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
deploy-context-2.0.2 features/step_definitions/deploy-context.rb
deploy-context-2.0.1.1.g34e199f features/step_definitions/deploy-context.rb
deploy-context-2.0.1 features/step_definitions/deploy-context.rb
deploy-context-2.0.0.1.gae09dc8 features/step_definitions/deploy-context.rb