deploy-context 2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8.4.gbb2ab14.12.g0bc028d → 2.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bin/deploy-context +3 -1
- data/libraries/context-manager.rb +103 -6
- data/libraries/deploy-context/cookbook-studio.rb +43 -0
- data/libraries/deploy-context/cucumber-studio.rb +9 -0
- data/libraries/deploy-context/default-studio.rb +58 -0
- data/libraries/deploy-context/deploy/context.rb +0 -70
- data/libraries/deploy-context/deploy/cookbook.rb +20 -4
- data/libraries/deploy-context/deploy/cucumber.rb +7 -3
- data/libraries/deploy-context/deploy/deployer.rb +20 -38
- data/libraries/deploy-context/deploy/git.rb +16 -14
- data/libraries/deploy-context/deploy/habitat.rb +112 -0
- data/libraries/deploy-context/deploy/ruby.rb +34 -9
- data/libraries/deploy-context/habitat-studio.rb +38 -0
- data/libraries/deploy-context/helpers/command.rb +7 -4
- data/libraries/deploy-context/helpers/rake_tasks.rb +143 -39
- data/libraries/deploy-context/ruby-studio.rb +24 -0
- data/libraries/deploy-context/steps/deploy.rb +53 -0
- data/libraries/deploy-context/studio/base.rb +155 -0
- data/libraries/deploy-context/studio/default.rb +65 -0
- data/libraries/deploy-context/studio/deployer.rb +20 -0
- data/libraries/deploy-context.rb +9 -13
- data.tar.gz.sig +0 -0
- metadata +184 -29
- metadata.gz.sig +0 -0
- data/.gitignore +0 -25
- data/.kitchen/logs/kitchen.log +0 -149
- data/CHANGELOG.md +0 -10
- data/Gemfile +0 -3
- data/Policyfile.rb +0 -16
- data/Rakefile +0 -3
- data/VERSION +0 -1
- data/chefignore +0 -115
- data/compliance/README.md +0 -25
- data/config/cucumber.yml +0 -5
- data/deploy-context.gemspec +0 -69
- data/features/code_update.feature +0 -13
- data/features/step_definitions/deploy-context.rb +0 -2
- data/features/support/env.rb +0 -6
- data/features/update_deployer.feature +0 -10
- data/features/updated_git.feature +0 -10
- data/kitchen.yml +0 -31
- data/libraries/deploy-context/deploy.rb +0 -36
- data/libraries/deploy-context/helpers/binary.rb +0 -7
- data/libraries/deploy-context/step_definitions/deploy-context.rb +0 -39
- data/metadata.rb +0 -23
- data/recipes/default.rb +0 -8
- data/test/integration/default/default_test.rb +0 -16
data/deploy-context.gemspec
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'git-version-bump'
|
3
|
-
|
4
|
-
::Gem::Specification.new do |s|
|
5
|
-
s.name = 'deploy-context'
|
6
|
-
s.license = 'MIT'
|
7
|
-
s.authors = ['Jimmy Provencher']
|
8
|
-
s.email = ['jimbo_dragon@hotmail.com']
|
9
|
-
s.homepage = 'https://github.com/JimboDragonGit/deploy-context'
|
10
|
-
s.summary = 'A auto chef bootstrapper and wrapper cookbook to deploy code and context'
|
11
|
-
s.description = 'Using Chef cookbook style and force any script using it to switch to chef even if it is not install. It will install it tho ;)'
|
12
|
-
|
13
|
-
|
14
|
-
s.version = GVB.version
|
15
|
-
s.date = GVB.date
|
16
|
-
|
17
|
-
# all_files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
18
|
-
# s.files = all_files.grep(%r!^(exe|libraries|rubocop)/|^.rubocop.yml$!)
|
19
|
-
# code_folder = 'libraries/'
|
20
|
-
# s.files = %w(README.md LICENSE bin/selfbootstrap libraries/selfbootstrap.rb ) + Dir.glob('libraries/**/*') # + Dir.glob('{bin,lib,certs,test}/**/*')
|
21
|
-
# s.require_paths = [code_folder]
|
22
|
-
# s.executables = %w(selfbootstrap)
|
23
|
-
# s.bindir = 'exe'
|
24
|
-
|
25
|
-
|
26
|
-
s.extra_rdoc_files = ["README.md"]
|
27
|
-
s.files = `git ls-files`.split("\n")
|
28
|
-
s.executables = [
|
29
|
-
'deploy-context'
|
30
|
-
]
|
31
|
-
|
32
|
-
# s.cert_chain = [File.expand_path('../jimbodragon/certs/public/jimbodragon.pem')]
|
33
|
-
# s.signing_key = File.expand_path('../jimbodragon/certs/private/jimbodragon-gem-private_key.pem') if $PROGRAM_NAME =~ /gem\z/
|
34
|
-
|
35
|
-
s.metadata = {
|
36
|
-
# 'source_code_uri' => '/home/git/selfbootstrap.git/',
|
37
|
-
'bug_tracker_uri' => 'https://github.com/JimboDragonGit/deploy-context/issues',
|
38
|
-
'changelog_uri' => 'https://github.com/JimboDragonGit/deploy-context/releases',
|
39
|
-
'homepage_uri' => s.homepage,
|
40
|
-
}
|
41
|
-
|
42
|
-
s.rdoc_options = ['--charset=UTF-8']
|
43
|
-
s.extra_rdoc_files = %w(README.md LICENSE)
|
44
|
-
|
45
|
-
# s.required_ruby_version = '>= 2.5.0'
|
46
|
-
# s.required_rubygems_version = '>= 2.7.0'
|
47
|
-
|
48
|
-
s.add_development_dependency('chef')
|
49
|
-
s.add_development_dependency('test-kitchen')
|
50
|
-
|
51
|
-
s.add_runtime_dependency('git-version-bump')
|
52
|
-
|
53
|
-
# s.add_runtime_dependency('colorator', '~> 1.0')
|
54
|
-
# s.add_runtime_dependency('em-websocket', '~> 0.5')
|
55
|
-
# s.add_runtime_dependency('i18n', '~> 1.0')
|
56
|
-
# s.add_runtime_dependency('jekyll-sass-converter', '>= 2.0', '< 4.0')
|
57
|
-
# s.add_runtime_dependency('jekyll-watch', '~> 2.0')
|
58
|
-
# s.add_runtime_dependency('kramdown', '~> 2.3', '>= 2.3.1')
|
59
|
-
# s.add_runtime_dependency('kramdown-parser-gfm', '~> 1.0')
|
60
|
-
# s.add_runtime_dependency('liquid', '~> 4.0')
|
61
|
-
# s.add_runtime_dependency('mercenary', '>= 0.3.6', '< 0.5')
|
62
|
-
# s.add_runtime_dependency('pathutil', '~> 0.9')
|
63
|
-
# s.add_runtime_dependency('rouge', '>= 3.0', '< 5.0')
|
64
|
-
# s.add_runtime_dependency('safe_yaml', '~> 1.0')
|
65
|
-
# s.add_runtime_dependency('terminal-table', '>= 1.8', '< 4.0')
|
66
|
-
# s.add_runtime_dependency('webrick', '~> 1.7')
|
67
|
-
end
|
68
|
-
|
69
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# language: fr
|
2
|
-
@fr @deploycontext
|
3
|
-
Fonctionnalité: Je suis le testeur du déployeur de deploy-context
|
4
|
-
|
5
|
-
Plan du Scénario: Démarrer un simple cycle de projet
|
6
|
-
Étant donné que le projet <project_name> à du code à updater
|
7
|
-
# Alors bumper la version du patch de <project_name>
|
8
|
-
# Et déployer le projet <project_name>
|
9
|
-
# Et tester le projet <project_name>
|
10
|
-
|
11
|
-
Exemples:
|
12
|
-
| project_name |
|
13
|
-
| deploy-context |
|
data/features/support/env.rb
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# language: fr
|
2
|
-
@fr @deploycontext
|
3
|
-
Fonctionnalité: Je suis le testeur du déployeur de deploy-context
|
4
|
-
|
5
|
-
Plan du Scénario: Tester le project deploy-context
|
6
|
-
Étant donné que le projet <project_name> à la bonne version d'installer
|
7
|
-
|
8
|
-
Exemples:
|
9
|
-
| project_name |
|
10
|
-
| deploy-context |
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# language: fr
|
2
|
-
@fr @deploycontext
|
3
|
-
Fonctionnalité: Je suis le testeur du déployeur de deploy-context
|
4
|
-
|
5
|
-
Plan du Scénario: Tester le project deploy-context
|
6
|
-
Étant donné que le projet <project_name> à une nouvelle version de disponible
|
7
|
-
|
8
|
-
Exemples:
|
9
|
-
| project_name |
|
10
|
-
| deploy-context |
|
data/kitchen.yml
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
---
|
2
|
-
driver:
|
3
|
-
name: vagrant
|
4
|
-
|
5
|
-
## The forwarded_port port feature lets you connect to ports on the VM guest
|
6
|
-
## via localhost on the host.
|
7
|
-
## see also: https://www.vagrantup.com/docs/networking/forwarded_ports
|
8
|
-
|
9
|
-
# network:
|
10
|
-
# - ["forwarded_port", {guest: 80, host: 8080}]
|
11
|
-
|
12
|
-
provisioner:
|
13
|
-
name: chef_zero
|
14
|
-
|
15
|
-
## product_name and product_version specifies a specific Chef product and version to install.
|
16
|
-
## see the Chef documentation for more details: https://docs.chef.io/workstation/config_yml_kitchen/
|
17
|
-
# product_name: chef
|
18
|
-
# product_version: 17
|
19
|
-
|
20
|
-
verifier:
|
21
|
-
name: inspec
|
22
|
-
|
23
|
-
platforms:
|
24
|
-
- name: ubuntu-20.04
|
25
|
-
- name: centos-8
|
26
|
-
|
27
|
-
suites:
|
28
|
-
- name: default
|
29
|
-
verifier:
|
30
|
-
inspec_tests:
|
31
|
-
- test/integration/default
|
@@ -1,36 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require 'simplecov_setup'
|
4
|
-
require 'cucumber/rspec/disable_option_parser'
|
5
|
-
require 'cucumber/cli/main'
|
6
|
-
|
7
|
-
require 'rubygems'
|
8
|
-
require 'fileutils'
|
9
|
-
require 'git-version-bump'
|
10
|
-
|
11
|
-
require_relative 'helpers/command'
|
12
|
-
require_relative 'deploy/deployer'
|
13
|
-
require_relative 'deploy/git'
|
14
|
-
require_relative 'deploy/context'
|
15
|
-
|
16
|
-
|
17
|
-
module Context
|
18
|
-
class Deploy
|
19
|
-
include CommandHelper
|
20
|
-
include DeployHelpers::DeployerHelper
|
21
|
-
include DeployHelpers::GitHelper
|
22
|
-
include DeployHelpers::ContextHelper
|
23
|
-
|
24
|
-
attr_reader :context_name
|
25
|
-
attr_reader :context_folder
|
26
|
-
|
27
|
-
attr_accessor :existing_cucumber_runtime
|
28
|
-
attr_accessor :existing_cucumber_configuration
|
29
|
-
|
30
|
-
|
31
|
-
def initialize(context_name, deploycontext_folder)
|
32
|
-
@context_name = context_name
|
33
|
-
@context_folder = move_folder(deploycontext_folder)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,39 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# Étantdonnéque('le projet {word} à une dernière version de disponible dans git') do |project_name|
|
4
|
-
# context_exec [project_name, 'cycle']
|
5
|
-
|
6
|
-
# if project_name == deployer.context_name
|
7
|
-
# Dir.chdir deployer.context_folder
|
8
|
-
# else
|
9
|
-
# Dir.chdir File.join(deployer.contexts_container(deployer), project_name)
|
10
|
-
# end
|
11
|
-
# end
|
12
|
-
|
13
|
-
Alors('démarrer un simple cycle de {word}') do |project_name|
|
14
|
-
context_exec [project_name, 'cycle'] || abort("#{project_name} ERROR: Issue with life cycle")
|
15
|
-
end
|
16
|
-
|
17
|
-
Alors('déployer le projet {word}') do |project_name|
|
18
|
-
context_exec [project_name, 'release'] || abort("#{project_name} ERROR: Issue with deploy steps")
|
19
|
-
end
|
20
|
-
|
21
|
-
Alors('tester le projet {word}') do |project_name|
|
22
|
-
context_exec [project_name, 'test'] || abort("#{project_name} ERROR: Issue with testing steps")
|
23
|
-
end
|
24
|
-
|
25
|
-
Étantdonnéque('le projet {word} à du code à updater') do |project_name|
|
26
|
-
context_exec [project_name, 'check_code_to_update'] || abort("#{project_name} ERROR: Issue to check updated code")
|
27
|
-
end
|
28
|
-
|
29
|
-
Alors('bumper la version du patch de {word}') do |project_name|
|
30
|
-
context_exec [project_name, 'bump'] || abort("#{project_name} ERROR: Issue with bumping version")
|
31
|
-
end
|
32
|
-
|
33
|
-
Étantdonnéque('le projet {word} à la bonne version d\'installer') do |project_name|
|
34
|
-
context_exec [project_name, 'check_installed_version'] || abort("#{project_name} ERROR: Issue to check installed version")
|
35
|
-
end
|
36
|
-
|
37
|
-
Étantdonnéque('le projet {word} à une nouvelle version de disponible') do |project_name|
|
38
|
-
context_exec [project_name, 'check_new_version'] || abort("#{project_name} ERROR: Issue to check newer version available")
|
39
|
-
end
|
data/metadata.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'git-version-bump'
|
3
|
-
|
4
|
-
name 'deploy-context'
|
5
|
-
maintainer 'Jimmy Provencher'
|
6
|
-
maintainer_email 'jimmy.provencher@hotmail.ca'
|
7
|
-
license 'All Rights Reserved'
|
8
|
-
description 'Installs/Configures deploy-context'
|
9
|
-
# version "#{GVB.major_version(true)}.#{GVB.minor_version(true)}.#{GVB.patch_version(true)}"
|
10
|
-
version File.read('VERSION')
|
11
|
-
chef_version '>= 16.0'
|
12
|
-
|
13
|
-
# The `issues_url` points to the location where issues for this cookbook are
|
14
|
-
# tracked. A `View Issues` link will be displayed on this cookbook's page when
|
15
|
-
# uploaded to a Supermarket.
|
16
|
-
#
|
17
|
-
# issues_url 'https://github.com/<insert_org_here>/deploy-context/issues'
|
18
|
-
|
19
|
-
# The `source_url` points to the development repository for this cookbook. A
|
20
|
-
# `View Source` link will be displayed on this cookbook's page when uploaded to
|
21
|
-
# a Supermarket.
|
22
|
-
#
|
23
|
-
# source_url 'https://github.com/<insert_org_here>/deploy-context'
|
data/recipes/default.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# Chef InSpec test for recipe deploy-context::default
|
2
|
-
|
3
|
-
# The Chef InSpec reference, with examples and extensive documentation, can be
|
4
|
-
# found at https://docs.chef.io/inspec/resources/
|
5
|
-
|
6
|
-
unless os.windows?
|
7
|
-
# This is an example test, replace with your own test.
|
8
|
-
describe user('root'), :skip do
|
9
|
-
it { should exist }
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
# This is an example test, replace it with your own test.
|
14
|
-
describe port(80), :skip do
|
15
|
-
it { should_not be_listening }
|
16
|
-
end
|