deploy-context 2.13.17 → 2.13.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +1 -4
  3. data.tar.gz.sig +0 -0
  4. metadata +1 -34
  5. metadata.gz.sig +0 -0
  6. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/context-knife-context.rb +0 -26
  7. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/context-manager.rb +0 -100
  8. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/cookbook-studio.rb +0 -72
  9. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/cucumber-studio.rb +0 -45
  10. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/cucumber-suite.rb +0 -179
  11. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/default-studio.rb +0 -174
  12. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/chef.rb +0 -57
  13. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/context.rb +0 -42
  14. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/cookbook.rb +0 -121
  15. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/cucumber.rb +0 -42
  16. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/deployer.rb +0 -83
  17. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/git.rb +0 -62
  18. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/habitat.rb +0 -112
  19. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/ruby.rb +0 -138
  20. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/vagrant.rb +0 -7
  21. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/habitat-studio.rb +0 -50
  22. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/helpers/command.rb +0 -91
  23. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/helpers/gemspec.rb +0 -91
  24. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/helpers/rake_tasks.rb +0 -150
  25. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/knife/default_knife_context.rb +0 -35
  26. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/knife/dummy_knife.rb +0 -43
  27. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/ruby-studio.rb +0 -56
  28. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/steps/deploy.rb +0 -61
  29. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/studio/base.rb +0 -167
  30. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/studio/default.rb +0 -38
  31. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/studio/deployer.rb +0 -24
  32. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context.rb +0 -65
  33. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-cucumber.rb +0 -18
  34. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-git.rb +0 -47
  35. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-habitat.rb +0 -82
  36. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-kitchen.rb +0 -67
  37. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-knife.rb +0 -45
  38. data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-rake.rb +0 -12
@@ -1,167 +0,0 @@
1
- module Context
2
- module Studio
3
- module Base
4
- def help
5
- show_help(self)
6
- end
7
-
8
- def test
9
- context_log "\nExecute tests\n"
10
- context_log "\n\nTest result: #{test_context_successful?}\n"
11
- end
12
-
13
- def version
14
- # do_prepare unless defined?(GitVersionBump)
15
- # context_log "Getting version info for #{context_folder} and version should be #{GitVersionBump.version(true)}"
16
- if defined?(GitVersionBump)
17
- Gem::Version.new(GitVersionBump.version(true))
18
- else
19
- Gem::Version.new(cookbook_version(self))
20
- end
21
- end
22
-
23
- def current_version_installed?
24
- gem_installed?(self, context_name, version)
25
- end
26
-
27
- def test_context_successful?
28
- context_log "Check if #{context_name} is install #{version}"
29
-
30
- if cookbook_test_successful?(self) && cucumber_test_successful?(self) && current_version_installed?
31
- context_log "Test context #{context_name} was successfully perform on version #{version}"
32
- true
33
- else
34
- context_log "Test context #{context_name} has failed to perform #{version}"
35
- false
36
- end
37
- end
38
-
39
- def on_a_dirty_studio?
40
- git_dirty_state?(self)
41
- end
42
-
43
- def loaded_in_ruby?
44
- gem_available?(self, context_name, version)
45
- end
46
-
47
- # def cycle
48
- # ruby_cycle(self)
49
- # end
50
-
51
- # def build
52
- # ruby_build(self)
53
- # cookbook_build(self)
54
- # build_habitat(self)
55
- # end
56
-
57
- # def commit
58
- # cookbook_install(self)
59
- # git_commit(self)
60
- # end
61
-
62
- # def push
63
- # commit
64
- # git_release(self)
65
- # end
66
-
67
- # def release
68
- # context_log "\n\nRelease #{context_name} at version #{version}"
69
- # cookbook_push(self)
70
- # ruby_release(self)
71
- # git_release(self)
72
- # start_habitat_job(self)
73
- # end
74
-
75
- # def install
76
- # ruby_install(self)
77
- # end
78
-
79
- # def clean
80
- # clean_folder(self, 'contexts')
81
- # ruby_clean(self)
82
- # cookbook_clean(self)
83
- # end
84
-
85
- # def patch_bump
86
- # GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true)}.#{GitVersionBump.patch_version(true) + 1}")
87
- # show_new_version('Patch')
88
- # end
89
-
90
- # def minor_bump
91
- # GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true) + 1}.0")
92
- # show_new_version('Minor')
93
- # end
94
-
95
- # def major_bump
96
- # GitVersionBump.tag_version("#{GitVersionBump.major_version(true) + 1}.0.0")
97
- # show_new_version('Major')
98
- # end
99
-
100
- # def wait_until_release_available
101
- # wait_until_release_available unless is_present_publicly?
102
- # end
103
-
104
- def load_dependencies
105
- require 'simplecov_setup'
106
- require 'git-version-bump'
107
- require 'cucumber'
108
- require 'cucumber/cli/main'
109
- require 'cucumber/rspec/disable_option_parser'
110
- end
111
-
112
- # def test
113
- # context_log "\nExecute tests\n"
114
- # context_log "\n\nTest result: #{test_context_successful?}\n"
115
- # end
116
- end
117
- end
118
- end
119
-
120
-
121
- # case action
122
- # when 'cycle'
123
- # context.log "\nExecute only the cycle once\n"
124
- # context.cycle
125
- # true
126
- # when 'agent'
127
- # context.log "\nAlways in execution\n"
128
- # while true do
129
- # context.cycle
130
- # end
131
- # true
132
- # when 'commit'
133
- # context.log "\nBump minor version\n"
134
- # context.commit
135
- # true
136
- # when 'push'
137
- # context.log "\nBump minor version\n"
138
- # context.push
139
- # true
140
- # when 'bump'
141
- # context.log "\nBump minor version\n"
142
- # context.patch_bump
143
- # true
144
- # when 'release'
145
- # context.log "\nBump major version\n"
146
- # context.minor_bump
147
- # true
148
- # when 'upgrade'
149
- # context.log "\nBump major version\n"
150
- # context.major_bump
151
- # true
152
- # when 'test'
153
- # context.log "\nExecute tests\n"
154
- # context.test_context_successful?
155
- # when 'reset'
156
- # context.log "\nReset versionning\n"
157
- # system('rake')
158
- # # context.cucumber_test(deployer)
159
- # true
160
- # when 'help'
161
- # context.show_help(context)
162
- # true
163
- # else
164
- # context.error_context_log context.context_name, "Unknown setting #{action}"
165
- # show_help(context)
166
- # false
167
- # end
@@ -1,38 +0,0 @@
1
- require_relative 'base'
2
-
3
- module Context
4
- module Studio
5
- module Default
6
- def actions_permitted
7
- %w(
8
- do_begin
9
- do_download
10
- do_verify
11
- do_clean
12
- do_unpack
13
- do_prepare
14
- do_build
15
- do_check
16
- do_install
17
- do_strip
18
- do_end
19
- help
20
- do_mix_cookbook
21
- do_agent
22
- )
23
- end
24
-
25
- def do_mix_cookbook
26
- cookbook_result = mix_run_list(self, context_name)
27
- context_log "Mix the cookbook #{context_name}: #{cookbook_result.class}"
28
- end
29
-
30
- def do_agent
31
- git_build(self)
32
- while true do
33
- do_mix_cookbook
34
- end
35
- end
36
- end
37
- end
38
- end
@@ -1,24 +0,0 @@
1
- module Context
2
- module Studio
3
- module Deployer
4
- def self.set(deployer_class)
5
- @deployer = deployer_class if @deployer.nil?
6
- @deployer
7
- end
8
-
9
- def self.execute(action)
10
- @deployer.send(action)
11
- end
12
-
13
- def self.method_missing(method_name, *argv, &block)
14
- @deployer.debug_context_log "Searching method #{method_name} in context #{@deployer}"
15
- is_deploy_context_respond_to_action = @deployer.respond_to?(method_name) && @deployer.actions_permitted?(method_name.to_s)
16
- if is_deploy_context_respond_to_action
17
- @deployer.execute_action(@deployer, method_name)
18
- else
19
- @deployer.debug_context_log "\n\nUnavailable action '#{method_name}' for context #{@deployer.context_name} as #{@deployer.respond_to?(method_name)} and #{@deployer.actions_permitted?(method_name)} for #{@deployer.class}\n"
20
- end
21
- end
22
- end
23
- end
24
- end
@@ -1,65 +0,0 @@
1
-
2
- require_relative 'context-knife-context'
3
-
4
- module Context
5
- module DeployKnifeConstant
6
- def organisation_name
7
- 'deploy-context'
8
- end
9
-
10
- def context_name
11
- 'deploy-context'
12
- end
13
-
14
- def context_folder
15
- File.join(ENV['HOME'], 'deploy-context')
16
- end
17
- end
18
-
19
- class DeployKnifeContext < Manager
20
- banner "knife deploy knife context"
21
-
22
- deps do
23
- Knife::DefaultKnifeContext.load_deps
24
- end
25
-
26
- option :omg,
27
- :short => '-O',
28
- :long => '--omg',
29
- :description => "I'm so excited! 9"
30
-
31
- def run
32
- if config[:omg]
33
- puts "OMG HELLO WORLD!!!9!!99"
34
- else
35
- puts "I am just a fucking example. 9"
36
- end
37
- end
38
- end
39
-
40
- class DeployContext < Manager
41
- include DeployKnifeConstant
42
- banner "knife deploy context"
43
-
44
- deps do
45
- Knife::DefaultKnifeContext.load_deps
46
- end
47
-
48
- def run
49
- run_cmd = if name_args.empty?
50
- warning_context_log 'Deploy Context', 'No argumet passed'
51
- show_help(self)
52
- []
53
- else
54
- warning_context_log 'Deploy Context', name_args
55
- tmp_cmd = %w(knife context) + [name_args[0], 'studio']
56
- if name_args[1].nil?
57
- tmp_cmd
58
- else
59
- tmp_cmd + name_args[1...]
60
- end
61
- end
62
- execute_command(run_cmd)
63
- end
64
- end
65
- end
@@ -1,18 +0,0 @@
1
-
2
- Étantdonné('la suite de test {word}') do |test_suite|
3
- context_suite.test_suite = test_suite
4
- stop_test("Cucumber #{context_suite.test_suite} is unavailable", :no_cucumber) unless system("cucumber -d")
5
- end
6
-
7
- Quand('les tests sont réussi') do
8
- stop_test("Cucumber test #{context_suite.test_suite} failed on execution", :cucumber_test_issue) unless system("knife context deploy --context-name #{context_suite.test_suite}")
9
- end
10
-
11
- Étantdonné('le profile {word}') do |profile_name|
12
- context_suite.profile_name = profile_name
13
- stop_test("Cucumber #{context_suite.profile_name} is unavailable", :no_profile) unless system("cucumber --profile #{context_suite.profile_name}")
14
- end
15
-
16
- Alors('émettre le rapport') do
17
- stop_test("Cucumber test report #{context_suite.test_suite} failed to sent", :cucumber_test_issue) unless system("cucumber --profile #{context_suite.profile_name}")
18
- end
@@ -1,47 +0,0 @@
1
-
2
- Étantdonné('la branche non maîtresse {word}') do |branch_name|
3
- context_suite.branch_name = branch_name
4
- stop_test("Git branch #{context_suite.branch_name} unavailable", :no_branch) unless branch_exist?
5
- end
6
-
7
- Quand('le dépot est brouillonné') do
8
- stop_test("Git branch #{context_suite.branch_name} is not dirty", :not_dirty) unless dirty_branch?
9
- end
10
-
11
- Quand('le dépot est propre') do
12
- stop_test("Git branch #{context_suite.branch_name} is dirty", :is_dirty) if dirty_branch?
13
- end
14
-
15
- Alors('note les modifications au dépot') do
16
- stop_test("Git branch #{context_suite.branch_name} modifications cannot be added", :git_add_issue) unless system('git add .')
17
- end
18
-
19
- Alors('interne les changements sur le dépot') do
20
- stop_test("Git branch #{context_suite.branch_name} commit issue", :commit_issue) unless git_commit_successfully?
21
- end
22
-
23
- Alors('fusionne le dépot avec la branche {word}') do |branch_name|
24
- stop_test("Git branch #{context_suite.branch_name} could't merge with master branch", :merge_issue) unless merge_with_branch_successfull?(branch_name)
25
- end
26
-
27
- Étantdonné('la branche maîtresse') do
28
- context_suite.branch_name = 'master'
29
- stop_test("Issue switching to master", :master_switch_issue) unless system('git checkout master')
30
- end
31
-
32
- Alors('déploi les modifications') do
33
- stop_test("Le déploiment vers son origine lointaine à échouer", :git_push_issue) unless system('git push')
34
- end
35
-
36
- Alors('va sur la branche non maîtresse {word}') do |branch_name|
37
- context_suite.branch_name = branch_name
38
- stop_test("Le déploiment vers son origine lointaine à échouer", :git_checkout_issue) unless switch_branch_successful?
39
- end
40
-
41
- Alors('récupère les dernières modifications') do
42
- stop_test("Le récupération avec son origine lointaine à échouer", :git_pull_issue) unless system('git pull')
43
- end
44
-
45
- Alors('supprime le fichier de status') do
46
- File.delete('deploy-status.json') if File.exist? 'deploy-status.json'
47
- end
@@ -1,82 +0,0 @@
1
-
2
- Étantdonné('le plan {word}') do |habitat_plan|
3
- context_suite.plan_path = habitat_plan
4
- stop_test("Habitat plan #{context_suite.plan_path} unavailable", :no_plan) unless Dir.exist?(context_suite.plan_path)
5
- end
6
-
7
- Étantdonné('l\'organisation {word}') do |organisation_name|
8
- context_suite.organisation_name = organisation_name
9
- end
10
-
11
- Étantdonné('l\'application {word}') do |application_name|
12
- context_suite.application_name = application_name
13
- end
14
-
15
- Quand('le studio habitat est initialisé') do
16
- stop_test("Habitat plan #{context_suite.plan_path} unavailable", :no_studio) unless verify_habitat?
17
- end
18
-
19
- Quand('le secret {word} est disponible') do |secret_key|
20
- stop_test("Habitat secrets #{context_suite.plan_path} not set", :no_secret) unless verify_secret?(secret_key)
21
- end
22
-
23
- Alors('construit selon le plan') do
24
- stop_test("Habitat plan #{context_suite.plan_path} unavailable", :build_fail) unless plan_build_successfully?
25
- end
26
-
27
- Alors('démarre une tâche pour construire') do
28
- stop_test("Habitat plan builder #{context_suite.plan_path} failed", :builder_fail) unless system("hab bldr job start #{context_suite.organisation_name}/#{context_suite.application_name} x86_64-linux")
29
- end
30
-
31
- Quand('le projet est terminé') do
32
- stop_test("Le projet n'est pas compléter", :not_accepted) unless context_suite.status == :accepted
33
- end
34
-
35
- Quand('le studio habitat réussi') do
36
- stop_test("Le studio est un échec", context_suite.status) unless context_suite.status != :ok
37
- end
38
-
39
- Quand('une tâche est dispatché') do
40
- stop_test("Aucun tâche de disponible sur l'origin #{context_suite.organisation_name}", :no_habitat_task_dispatched) unless habitat_new_task?
41
- end
42
-
43
- Alors('attendre qu\'elle soit complété') do
44
- second_pass = 0
45
- while true do
46
- if habitat_new_task?
47
- puts "Waiting for task... #{second_pass} seconds"
48
- sleep 1
49
- second_pass += 1
50
- else
51
- break
52
- end
53
- end
54
- end
55
-
56
- Alors('promouvoir la dite tâche') do
57
- stop_test("Promouvoir la tâche sur l'origin #{context_suite.organisation_name}", :habitat_promotion_fail) unless habitat_task_completed?
58
- end
59
-
60
- Quand('la dernière tâche diffère') do
61
- stop_test("Même tâche que son origin #{context_suite.organisation_name}", :same_last_build) unless habitat_task_different?
62
- end
63
-
64
- Quand('son status est Complete') do
65
- stop_test("Même tâche que son origin #{context_suite.organisation_name}", :build_completed) unless habitat_task_completed?
66
- end
67
-
68
- Alors('enregistre le numéro de build') do
69
- write_build_id
70
- end
71
-
72
- Alors('nettoie le plan de travail') do
73
- delete_file_only_if_exist(get_context_file(self, 'habitat/plan.sh/Gemfile.lock'))
74
- end
75
-
76
- Alors('prépare le plan de travail') do
77
- # prepare_workplan
78
- end
79
-
80
- Alors('afficher les variables usagers') do
81
- generate_user_json
82
- end
@@ -1,67 +0,0 @@
1
- # extend Context::Steps::Deploy
2
-
3
- # deployer = Context::DeployContext.new(File.expand_path(__dir__, '../../'))
4
-
5
- # define_steps(deployer)
6
-
7
- Étantdonné('la suite kitchen {word}') do |kitchen_name|
8
- context_suite.suite_kitchen = kitchen_name
9
- stop_test("Kitchen suite #{kitchen_name} unavailable", :no_kitchen) unless kitchen_suite_exist?
10
- end
11
-
12
- Quand('on initialise le projet') do
13
- stop_test('Le projet est déjà initialisé', :already_initialized) if context_suite.status == :no_kitchen
14
- end
15
-
16
- Alors('converge la suite kitchen') do
17
- stop_test("la suite kitchen #{context_suite.suite_kitchen} est en échec", :converge_fail) unless kitchen_converged_successfully?
18
- end
19
-
20
- Alors('vérify que le tout est OK') do
21
- context_suite.status = if verify_kitchen? && verify_habitat?
22
- :ok
23
- else
24
- :not_all_ok
25
- end
26
- stop_test("la suite kitchen #{context_suite.suite_kitchen} est en échec", context_suite.status) if context_suite.status == :no_kitchen
27
- end
28
-
29
- Alors('enregistre le statut {word}') do |status|
30
- update_status(status)
31
- end
32
-
33
- Quand('la suite kitchen est détruit') do
34
- verify_kitchen_status
35
- stop_test("La suite #{context_suite.suite_kitchen} n'est pas détruit", context_suite.status) unless context_suite.status == :destroyed
36
- end
37
-
38
- Quand('la suite kitchen est convergée') do
39
- verify_kitchen_status
40
- stop_test("La suite #{context_suite.suite_kitchen} n'est pas convergée", context_suite.status) unless context_suite.status == :converged
41
- end
42
-
43
- Quand('la suite kitchen est vérifié') do
44
- verify_kitchen_status
45
- stop_test("La suite #{context_suite.suite_kitchen} n'est pas vérifiée", context_suite.status) unless context_suite.status == :verified
46
- end
47
-
48
- Quand('la suite kitchen n\'est pas vérifié') do
49
- verify_kitchen_status
50
- stop_test("La suite #{context_suite.suite_kitchen} est vérifié", context_suite.status) unless context_suite.status != :verified
51
- end
52
-
53
- Alors('détruire la suite kitchen') do
54
- stop_test("Kitchen suite #{context_suite.kitchen_suite} destruction failed", :no_kitchen) unless kitchen_destroyed_correctly?
55
- end
56
-
57
- Alors('vérifie la suite kitchen') do
58
- stop_test("Kitchen suite #{context_suite.kitchen_suite} verification failed", :verify_kitchen_failed) unless verify_kitchen?
59
- end
60
-
61
- Alors('test la suite kitchen') do
62
- stop_test("Kitchen suite #{context_suite.kitchen_suite} test failed", :test_kitchen_failed) unless kitchen_tested_successfully?
63
- end
64
-
65
- Alors("nettoyer le fichiers vérouillés") do
66
- cookbook_clean(self)
67
- end
@@ -1,45 +0,0 @@
1
-
2
- Quand('on peut lister les cookbooks') do
3
- stop_test('knife n\'est pas disponible, veuillez installer Chef Workstation', :no_knife) unless system('knife cookbook list')
4
- end
5
-
6
- Quand('un couteau {word} est accessible') do |sub_knife|
7
- stop_test("le couteau #{sub_knife} n\'est pas disponible", :no_sub_knife) unless command_available?(sub_knife, 'knife context')
8
- end
9
-
10
- Étantdonnéque('le couteau {word}') do |knife_name|
11
- context_suite.knife_context = knife_name
12
- stop_test("Le couteau #{knife_name} n\'est pas disponible", :no_context_knife) unless command_available?(context_suite.knife_context, 'knife context')
13
- end
14
-
15
- Alors('je peux affiché l\'aide du couteau') do
16
- # stop_test("le couteau #{context_suite.knife_context} ne peux afficher son aide", :no_sub_help) unless
17
- system("knife #{context_suite.knife_context} #{context_suite.knife_command} --help")
18
- end
19
-
20
- Alors('publier le cookbook {word}') do |cookbook_name|
21
- stop_test("le couteau ne peux publier le cookbook #{cookbook_name}", :cookbook_publish_fail) unless system("knife cookbook upload #{cookbook_name}")
22
- end
23
-
24
- Alors('autodéployer le cookbook {word}') do |cookbook_name|
25
- stop_test("chef ne peut déployer le cookbook #{cookbook_name}", :cookbook_deploy_fail) unless cookbook_push(self)
26
- end
27
-
28
- Alors('autopublier le cookbook {word}') do |cookbook_name|
29
- stop_test("le couteau ne peux publier le cookbook #{cookbook_name}", :cookbook_autopublish_fail) unless system("knife cookbook upload #{cookbook_name} --cookbook-path #{::File.dirname(Dir.pwd)}")
30
- end
31
-
32
- Étantdonné('la commande couteau {word}') do |knife_command|
33
- context_suite.knife_command = knife_command
34
- end
35
-
36
- Alors('exécute la commande couteau {word}') do |knife_command|
37
- context_suite.knife_command = knife_command
38
- stop_test("le couteau #{context_suite.knife_context} ne peux executer la commande #{context_suite.knife_command}", :sub_knife_issue) unless system("knife #{context_suite.knife_context} #{context_suite.knife_command}")
39
- end
40
-
41
- Alors('exécute la sous commande couteau {word} {word}') do |knife_command, sub_knife_command|
42
- context_suite.knife_command = knife_command
43
- context_suite.sub_knife_command = sub_knife_command
44
- stop_test("le couteau #{context_suite.knife_context} ne peux executer la commande #{context_suite.knife_command} #{context_suite.sub_knife_command}", :sub_knife_issue) unless system("knife #{context_suite.knife_context} #{context_suite.knife_command} #{context_suite.sub_knife_command}")
45
- end
@@ -1,12 +0,0 @@
1
-
2
- Alors('actionne {word} avec rake') do |rake_action|
3
- stop_test("L'action #{rake_action} à échouer", :rake_fail) unless system("cd habitat/plan.sh/; rake #{rake_action}") || true
4
- end
5
-
6
- Alors('bump la version') do
7
- stop_test("Bumper la version a échoué", :rake_bump_fail) unless GVB.internal_revision.nil? || system("git version-bump patch")
8
- end
9
-
10
- Alors('enregistre la version et la date') do
11
- stop_test("Bumper la version a échoué", :rake_bump_fail) unless write_cookbook_version
12
- end