Sha256: c11f5179f0be44562e4d3b75eaa9c575a4befd145e38bd9c7baa886126a85267

Contents?: true

Size: 1.64 KB

Versions: 61

Compression:

Stored size: 1.64 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("#{project_name} ERROR: Issue with life cycle")
end

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

Alors('tester le projet {word}') do |project_name|
  context_exec [project_name, 'test'] || abort("#{project_name} ERROR: 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("#{project_name} ERROR: Issue to check updated code")
end

Alors('bumper la version du patch de {word}') do |project_name|
  context_exec [project_name, 'bump'] || abort("#{project_name} ERROR: 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("#{project_name} ERROR: 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("#{project_name} ERROR: Issue to check newer version available")
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
deploy-context-2.1.26 features/step_definitions/deploy-context.rb
deploy-context-2.1.25.1.g100c5d2 features/step_definitions/deploy-context.rb
deploy-context-2.1.25 features/step_definitions/deploy-context.rb
deploy-context-2.1.24.1.g5c354df features/step_definitions/deploy-context.rb
deploy-context-2.1.24 features/step_definitions/deploy-context.rb
deploy-context-2.1.23.1.g8776c45 features/step_definitions/deploy-context.rb
deploy-context-2.1.23 features/step_definitions/deploy-context.rb
deploy-context-2.1.22.1.g7cd8ccb features/step_definitions/deploy-context.rb
deploy-context-2.1.22 features/step_definitions/deploy-context.rb
deploy-context-2.1.21.1.g665da28 features/step_definitions/deploy-context.rb
deploy-context-2.1.21 features/step_definitions/deploy-context.rb
deploy-context-2.1.20.1.gd671d80 features/step_definitions/deploy-context.rb
deploy-context-2.1.20 features/step_definitions/deploy-context.rb
deploy-context-2.1.19.1.g26a2b55.1.g5ba21a1.1.g32592ad features/step_definitions/deploy-context.rb
deploy-context-2.1.19.1.g26a2b55.1.g5ba21a1 features/step_definitions/deploy-context.rb
deploy-context-2.1.19.1.g26a2b55 features/step_definitions/deploy-context.rb
deploy-context-2.1.19 features/step_definitions/deploy-context.rb
deploy-context-2.1.18.1.gdf72b60 features/step_definitions/deploy-context.rb
deploy-context-2.1.18 features/step_definitions/deploy-context.rb
deploy-context-2.1.17 features/step_definitions/deploy-context.rb