deploy-context 2.13.10 → 2.13.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +4 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/context-knife-context.rb +26 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/context-manager.rb +100 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/cookbook-studio.rb +72 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/cucumber-studio.rb +45 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/cucumber-suite.rb +179 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/default-studio.rb +174 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/chef.rb +57 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/context.rb +42 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/cookbook.rb +121 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/cucumber.rb +42 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/deployer.rb +83 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/git.rb +62 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/habitat.rb +112 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/ruby.rb +138 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/vagrant.rb +7 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/habitat-studio.rb +50 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/helpers/command.rb +91 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/helpers/gemspec.rb +91 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/helpers/rake_tasks.rb +150 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/knife/default_knife_context.rb +35 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/knife/dummy_knife.rb +43 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/ruby-studio.rb +56 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/steps/deploy.rb +61 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/studio/base.rb +167 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/studio/default.rb +38 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/studio/deployer.rb +24 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context.rb +65 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-cucumber.rb +18 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-git.rb +47 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-habitat.rb +82 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-kitchen.rb +67 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-knife.rb +45 -0
- data/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-rake.rb +12 -0
- data.tar.gz.sig +0 -0
- metadata +64 -6
- metadata.gz.sig +0 -0
@@ -0,0 +1,38 @@
|
|
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
|
@@ -0,0 +1,24 @@
|
|
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
|
@@ -0,0 +1,65 @@
|
|
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
|
@@ -0,0 +1,18 @@
|
|
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
|
@@ -0,0 +1,47 @@
|
|
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
|
@@ -0,0 +1,82 @@
|
|
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
|
@@ -0,0 +1,67 @@
|
|
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
|
@@ -0,0 +1,45 @@
|
|
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
|
@@ -0,0 +1,12 @@
|
|
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
|
data.tar.gz.sig
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,39 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy-context
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.13.
|
4
|
+
version: 2.13.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Provencher
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIEDDCCAnSgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFqaW1t
|
14
|
+
eS5wcm92ZW5jaGVyL0RDPWhvdG1haWwvREM9Y2EwHhcNMjMxMDI4MDI1MjM2WhcN
|
15
|
+
MjQxMDI3MDI1MjM2WjAsMSowKAYDVQQDDCFqaW1teS5wcm92ZW5jaGVyL0RDPWhv
|
16
|
+
dG1haWwvREM9Y2EwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCex0r1
|
17
|
+
ngWBVriaiIpaW08qeFeaCMqRlotYWvXA4M796ahhyE0HUAz8IfqXyZL9FU3lyOW2
|
18
|
+
AdtO8ISR0W1nwOn3hJj6KL+KDylHP0Ih3k7pI7NysaBxi3QlpWSVOw+DOJA2OsLm
|
19
|
+
W/a9ZTeRigHiLkq4ZGIYiJFw7LhZSC1onXkGXu7vjST0ZFGL75z7kg+7zVRdB8IB
|
20
|
+
LwfwU93VPlRdNSBu4D3te0A6jN+Gvh2zvAKqd5muxT2869R0AaSDDeXyn70CbQry
|
21
|
+
AgXwO62Zl0whs5SYKZT4SHTsKPPEvIaj9UXJ863/lvxUQaqvpl+w+I/JvWaBcUS5
|
22
|
+
Ym+11VgydPyPZUiJN9EsvJJw9SuxjOXFtoGBVJ5SC3bgHeN6n74c8TCoH0IzZYlE
|
23
|
+
NLdQLw673cC4PkU2TRLYd9hKkH/0br/uxFiIcKjb0NfGERjZhYNugYNPCUzeYiM7
|
24
|
+
s4azT0a9oAbTVDjObG6M1xwOstnrdJtRaYDCswjVVtusAI10kNj4pvLVndECAwEA
|
25
|
+
AaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFF8GAfL+8GMx
|
26
|
+
W4bMFtNqJokjAxwQMA0GCSqGSIb3DQEBCwUAA4IBgQAmnJ6EvkNZ9S8y7UfGs8JQ
|
27
|
+
0/mDaGm6cbr2o8e72DtHUd31uwiubBBNdWVKP4mEeXkqGvA0aEr/+cNY1dwngxD8
|
28
|
+
e4H5i+9ILFRR2MtmEJZRm0p5Ccojseyk1fgNW7hnuQl4ah7G41W3k2HhrQgkft0/
|
29
|
+
x32pOZ3Q877cIhkBf+aoTKo6VWsYyP0NrMofsqLrAx8AnJBXrbCm1bMlL5g+HuFF
|
30
|
+
8Wtbt5UCECn13T/nr5sns81aMPcmI/Q6T3AEMq4+ijRQ9PxuHKTonalDVc0b56YX
|
31
|
+
hDB+YMAZYLdIKSv7OPb6sy3DOp+PDatZAILJumjwB/r7mlEYyU88Dzc2m5PPTylC
|
32
|
+
4roqVGgELD70cQUIQOlvzz/QmHs42m5SzuXKg3yKlM1PFV6+bO21qoaZ1voRiKQB
|
33
|
+
n6Pwa3EckU/5n8N6gUJTAmGyu6Ncu1pbsZtH450+BJ2z82JNXomdFYlnG8+1XNlj
|
34
|
+
3M1sBFUHvqrBg2hQkQcLHokmQYrYsRK5A7HrxwKcmwM=
|
35
|
+
-----END CERTIFICATE-----
|
36
|
+
date: 2023-10-28 00:00:00.000000000 Z
|
12
37
|
dependencies:
|
13
38
|
- !ruby/object:Gem::Dependency
|
14
39
|
name: inspec
|
@@ -173,6 +198,39 @@ executables:
|
|
173
198
|
extensions: []
|
174
199
|
extra_rdoc_files: []
|
175
200
|
files:
|
201
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/context-knife-context.rb"
|
202
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/context-manager.rb"
|
203
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context.rb"
|
204
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/cookbook-studio.rb"
|
205
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/cucumber-studio.rb"
|
206
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/cucumber-suite.rb"
|
207
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/default-studio.rb"
|
208
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/chef.rb"
|
209
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/context.rb"
|
210
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/cookbook.rb"
|
211
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/cucumber.rb"
|
212
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/deployer.rb"
|
213
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/git.rb"
|
214
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/habitat.rb"
|
215
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/ruby.rb"
|
216
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/deploy/vagrant.rb"
|
217
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/habitat-studio.rb"
|
218
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/helpers/command.rb"
|
219
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/helpers/gemspec.rb"
|
220
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/helpers/rake_tasks.rb"
|
221
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/knife/default_knife_context.rb"
|
222
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/knife/dummy_knife.rb"
|
223
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/ruby-studio.rb"
|
224
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/steps/deploy.rb"
|
225
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/studio/base.rb"
|
226
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/studio/default.rb"
|
227
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/studio/deployer.rb"
|
228
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-cucumber.rb"
|
229
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-git.rb"
|
230
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-habitat.rb"
|
231
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-kitchen.rb"
|
232
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-knife.rb"
|
233
|
+
- "/home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-definitions/deploy-context-rake.rb"
|
176
234
|
- bin/deploy-context
|
177
235
|
homepage: https://github.com/JimboDragonGit/deploy-context
|
178
236
|
licenses:
|
@@ -181,7 +239,7 @@ metadata:
|
|
181
239
|
bug_tracker_uri: https://github.com/JimboDragonGit/deploy-context/issues
|
182
240
|
changelog_uri: https://github.com/JimboDragonGit/deploy-context/releases
|
183
241
|
homepage_uri: https://github.com/JimboDragonGit/deploy-context
|
184
|
-
post_install_message:
|
242
|
+
post_install_message:
|
185
243
|
rdoc_options:
|
186
244
|
- "--charset=UTF-8"
|
187
245
|
require_paths:
|
@@ -198,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
256
|
version: '0'
|
199
257
|
requirements: []
|
200
258
|
rubygems_version: 3.2.32
|
201
|
-
signing_key:
|
259
|
+
signing_key:
|
202
260
|
specification_version: 4
|
203
261
|
summary: A auto chef bootstrapper and wrapper cookbook to deploy code and context
|
204
262
|
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|