central-cli 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.dockerignore +3 -0
- data/.gitignore +15 -0
- data/.rspec +6 -0
- data/.rubocop.yml +5 -0
- data/Dockerfile +15 -0
- data/Gemfile +10 -0
- data/LICENSE +191 -0
- data/README.md +39 -0
- data/Rakefile +9 -0
- data/VERSION +1 -0
- data/bin/cm +85 -0
- data/central-cli.gemspec +35 -0
- data/central-docker.sh +6 -0
- data/lib/central/cli/app_command.rb +29 -0
- data/lib/central/cli/apps/build_command.rb +24 -0
- data/lib/central/cli/apps/central_yml_generator.rb +88 -0
- data/lib/central/cli/apps/common.rb +166 -0
- data/lib/central/cli/apps/deploy_command.rb +191 -0
- data/lib/central/cli/apps/docker_compose_generator.rb +48 -0
- data/lib/central/cli/apps/docker_helper.rb +85 -0
- data/lib/central/cli/apps/dockerfile_generator.rb +15 -0
- data/lib/central/cli/apps/init_command.rb +91 -0
- data/lib/central/cli/apps/list_command.rb +68 -0
- data/lib/central/cli/apps/logs_command.rb +76 -0
- data/lib/central/cli/apps/monitor_command.rb +93 -0
- data/lib/central/cli/apps/remove_command.rb +80 -0
- data/lib/central/cli/apps/restart_command.rb +38 -0
- data/lib/central/cli/apps/scale_command.rb +31 -0
- data/lib/central/cli/apps/show_command.rb +23 -0
- data/lib/central/cli/apps/start_command.rb +39 -0
- data/lib/central/cli/apps/stop_command.rb +39 -0
- data/lib/central/cli/auth/aws/create_command.rb +34 -0
- data/lib/central/cli/auth/aws_command.rb +7 -0
- data/lib/central/cli/auth/list_command.rb +28 -0
- data/lib/central/cli/auth_command.rb +9 -0
- data/lib/central/cli/bytes_helper.rb +38 -0
- data/lib/central/cli/common.rb +148 -0
- data/lib/central/cli/container_command.rb +10 -0
- data/lib/central/cli/containers/exec_command.rb +21 -0
- data/lib/central/cli/containers/inspect_command.rb +22 -0
- data/lib/central/cli/etcd/common.rb +7 -0
- data/lib/central/cli/etcd/get_command.rb +26 -0
- data/lib/central/cli/etcd/list_command.rb +31 -0
- data/lib/central/cli/etcd/mkdir_command.rb +21 -0
- data/lib/central/cli/etcd/remove_command.rb +25 -0
- data/lib/central/cli/etcd/set_command.rb +22 -0
- data/lib/central/cli/etcd_command.rb +16 -0
- data/lib/central/cli/external_registries/add_command.rb +21 -0
- data/lib/central/cli/external_registries/delete_command.rb +15 -0
- data/lib/central/cli/external_registries/list_command.rb +27 -0
- data/lib/central/cli/external_registries/remove_command.rb +13 -0
- data/lib/central/cli/external_registry_command.rb +14 -0
- data/lib/central/cli/login_command.rb +121 -0
- data/lib/central/cli/logout_command.rb +7 -0
- data/lib/central/cli/master/aws/create_command.rb +41 -0
- data/lib/central/cli/master/aws_command.rb +7 -0
- data/lib/central/cli/master/azure/create_command.rb +39 -0
- data/lib/central/cli/master/azure_command.rb +11 -0
- data/lib/central/cli/master/digital_ocean/create_command.rb +35 -0
- data/lib/central/cli/master/digital_ocean_command.rb +11 -0
- data/lib/central/cli/master/list_command.rb +28 -0
- data/lib/central/cli/master/use_command.rb +34 -0
- data/lib/central/cli/master/users/add_role_command.rb +26 -0
- data/lib/central/cli/master/users/invite_command.rb +24 -0
- data/lib/central/cli/master/users/list_command.rb +18 -0
- data/lib/central/cli/master/users/remove_command.rb +22 -0
- data/lib/central/cli/master/users/remove_role_command.rb +25 -0
- data/lib/central/cli/master/users_command.rb +15 -0
- data/lib/central/cli/master/vagrant/create_command.rb +25 -0
- data/lib/central/cli/master/vagrant/restart_command.rb +20 -0
- data/lib/central/cli/master/vagrant/ssh_command.rb +15 -0
- data/lib/central/cli/master/vagrant/start_command.rb +20 -0
- data/lib/central/cli/master/vagrant/stop_command.rb +20 -0
- data/lib/central/cli/master/vagrant/terminate_command.rb +13 -0
- data/lib/central/cli/master/vagrant_command.rb +21 -0
- data/lib/central/cli/master_command.rb +19 -0
- data/lib/central/cli/node_command.rb +30 -0
- data/lib/central/cli/nodes/add_label_command.rb +19 -0
- data/lib/central/cli/nodes/aws/create_command.rb +40 -0
- data/lib/central/cli/nodes/aws/restart_command.rb +29 -0
- data/lib/central/cli/nodes/aws/terminate_command.rb +21 -0
- data/lib/central/cli/nodes/aws_command.rb +14 -0
- data/lib/central/cli/nodes/azure/create_command.rb +40 -0
- data/lib/central/cli/nodes/azure/restart_command.rb +31 -0
- data/lib/central/cli/nodes/azure/terminate_command.rb +21 -0
- data/lib/central/cli/nodes/azure_command.rb +14 -0
- data/lib/central/cli/nodes/digital_ocean/create_command.rb +32 -0
- data/lib/central/cli/nodes/digital_ocean/restart_command.rb +27 -0
- data/lib/central/cli/nodes/digital_ocean/terminate_command.rb +19 -0
- data/lib/central/cli/nodes/digital_ocean_command.rb +14 -0
- data/lib/central/cli/nodes/label_command.rb +12 -0
- data/lib/central/cli/nodes/labels/add_command.rb +19 -0
- data/lib/central/cli/nodes/labels/remove_command.rb +23 -0
- data/lib/central/cli/nodes/list_command.rb +62 -0
- data/lib/central/cli/nodes/remove_command.rb +16 -0
- data/lib/central/cli/nodes/remove_label_command.rb +23 -0
- data/lib/central/cli/nodes/show_command.rb +49 -0
- data/lib/central/cli/nodes/ssh_command.rb +31 -0
- data/lib/central/cli/nodes/update_command.rb +20 -0
- data/lib/central/cli/nodes/vagrant/create_command.rb +27 -0
- data/lib/central/cli/nodes/vagrant/restart_command.rb +26 -0
- data/lib/central/cli/nodes/vagrant/ssh_command.rb +21 -0
- data/lib/central/cli/nodes/vagrant/start_command.rb +26 -0
- data/lib/central/cli/nodes/vagrant/stop_command.rb +26 -0
- data/lib/central/cli/nodes/vagrant/terminate_command.rb +17 -0
- data/lib/central/cli/nodes/vagrant_command.rb +20 -0
- data/lib/central/cli/register_command.rb +21 -0
- data/lib/central/cli/registry/create_command.rb +144 -0
- data/lib/central/cli/registry/delete_command.rb +22 -0
- data/lib/central/cli/registry/remove_command.rb +19 -0
- data/lib/central/cli/registry_command.rb +11 -0
- data/lib/central/cli/service_command.rb +49 -0
- data/lib/central/cli/services/add_env_command.rb +19 -0
- data/lib/central/cli/services/add_secret_command.rb +24 -0
- data/lib/central/cli/services/container_command.rb +8 -0
- data/lib/central/cli/services/containers_command.rb +32 -0
- data/lib/central/cli/services/create_command.rb +90 -0
- data/lib/central/cli/services/delete_command.rb +19 -0
- data/lib/central/cli/services/deploy_command.rb +21 -0
- data/lib/central/cli/services/env_command.rb +11 -0
- data/lib/central/cli/services/envs/add_command.rb +19 -0
- data/lib/central/cli/services/envs/list_command.rb +20 -0
- data/lib/central/cli/services/envs/remove_command.rb +18 -0
- data/lib/central/cli/services/envs_command.rb +20 -0
- data/lib/central/cli/services/link_command.rb +26 -0
- data/lib/central/cli/services/list_command.rb +42 -0
- data/lib/central/cli/services/logs_command.rb +57 -0
- data/lib/central/cli/services/monitor_command.rb +58 -0
- data/lib/central/cli/services/remove_command.rb +17 -0
- data/lib/central/cli/services/remove_env_command.rb +18 -0
- data/lib/central/cli/services/remove_secret_command.rb +28 -0
- data/lib/central/cli/services/restart_command.rb +17 -0
- data/lib/central/cli/services/scale_command.rb +17 -0
- data/lib/central/cli/services/secret_command.rb +9 -0
- data/lib/central/cli/services/secrets/link_command.rb +24 -0
- data/lib/central/cli/services/secrets/unlink_command.rb +28 -0
- data/lib/central/cli/services/services_helper.rb +360 -0
- data/lib/central/cli/services/show_command.rb +18 -0
- data/lib/central/cli/services/start_command.rb +17 -0
- data/lib/central/cli/services/stats_command.rb +74 -0
- data/lib/central/cli/services/stop_command.rb +17 -0
- data/lib/central/cli/services/unlink_command.rb +25 -0
- data/lib/central/cli/services/update_command.rb +78 -0
- data/lib/central/cli/stack_command.rb +32 -0
- data/lib/central/cli/stack_options.rb +11 -0
- data/lib/central/cli/stacks/add_user_command.rb +18 -0
- data/lib/central/cli/stacks/audit_log_command.rb +21 -0
- data/lib/central/cli/stacks/cloud_config_command.rb +41 -0
- data/lib/central/cli/stacks/common.rb +95 -0
- data/lib/central/cli/stacks/create_command.rb +26 -0
- data/lib/central/cli/stacks/current_command.rb +25 -0
- data/lib/central/cli/stacks/env_command.rb +32 -0
- data/lib/central/cli/stacks/list_command.rb +35 -0
- data/lib/central/cli/stacks/list_users_command.rb +26 -0
- data/lib/central/cli/stacks/logs_command.rb +81 -0
- data/lib/central/cli/stacks/remove_command.rb +26 -0
- data/lib/central/cli/stacks/remove_user_command.rb +17 -0
- data/lib/central/cli/stacks/show_command.rb +19 -0
- data/lib/central/cli/stacks/trusted_subnets/add_command.rb +16 -0
- data/lib/central/cli/stacks/trusted_subnets/list_command.rb +17 -0
- data/lib/central/cli/stacks/trusted_subnets/remove_command.rb +20 -0
- data/lib/central/cli/stacks/update_command.rb +27 -0
- data/lib/central/cli/stacks/use_command.rb +21 -0
- data/lib/central/cli/stacks/user_command.rb +11 -0
- data/lib/central/cli/stacks/users/add_command.rb +18 -0
- data/lib/central/cli/stacks/users/list_command.rb +18 -0
- data/lib/central/cli/stacks/users/remove_command.rb +17 -0
- data/lib/central/cli/user/forgot_password_command.rb +16 -0
- data/lib/central/cli/user/reset_password_command.rb +21 -0
- data/lib/central/cli/user/verify_command.rb +22 -0
- data/lib/central/cli/user_command.rb +12 -0
- data/lib/central/cli/vault/list_command.rb +25 -0
- data/lib/central/cli/vault/read_command.rb +17 -0
- data/lib/central/cli/vault/remove_command.rb +14 -0
- data/lib/central/cli/vault/update_command.rb +18 -0
- data/lib/central/cli/vault/write_command.rb +22 -0
- data/lib/central/cli/vault_command.rb +16 -0
- data/lib/central/cli/version.rb +5 -0
- data/lib/central/cli/version_command.rb +22 -0
- data/lib/central/cli/vpn/config_command.rb +25 -0
- data/lib/central/cli/vpn/create_command.rb +71 -0
- data/lib/central/cli/vpn/delete_command.rb +21 -0
- data/lib/central/cli/vpn/remove_command.rb +19 -0
- data/lib/central/cli/vpn_command.rb +13 -0
- data/lib/central/cli/whoami_command.rb +20 -0
- data/lib/central/client.rb +208 -0
- data/lib/central/errors.rb +10 -0
- data/lib/central/machine/aws.rb +14 -0
- data/lib/central/machine/aws/auth_provisioner.rb +161 -0
- data/lib/central/machine/aws/cloudinit.yml +71 -0
- data/lib/central/machine/aws/cloudinit_master.yml +118 -0
- data/lib/central/machine/aws/cloudinit_oauth.yml +76 -0
- data/lib/central/machine/aws/common.rb +31 -0
- data/lib/central/machine/aws/master_provisioner.rb +171 -0
- data/lib/central/machine/aws/node_destroyer.rb +46 -0
- data/lib/central/machine/aws/node_provisioner.rb +214 -0
- data/lib/central/machine/azure.rb +13 -0
- data/lib/central/machine/azure/cloudinit.yml +64 -0
- data/lib/central/machine/azure/cloudinit_master.yml +106 -0
- data/lib/central/machine/azure/logger.rb +26 -0
- data/lib/central/machine/azure/master_provisioner.rb +125 -0
- data/lib/central/machine/azure/node_destroyer.rb +52 -0
- data/lib/central/machine/azure/node_provisioner.rb +126 -0
- data/lib/central/machine/cert_helper.rb +39 -0
- data/lib/central/machine/cloud_config/cloudinit.yml +70 -0
- data/lib/central/machine/cloud_config/node_generator.rb +27 -0
- data/lib/central/machine/common.rb +16 -0
- data/lib/central/machine/digital_ocean.rb +13 -0
- data/lib/central/machine/digital_ocean/cloudinit.yml +64 -0
- data/lib/central/machine/digital_ocean/cloudinit_master.yml +118 -0
- data/lib/central/machine/digital_ocean/master_provisioner.rb +99 -0
- data/lib/central/machine/digital_ocean/node_destroyer.rb +40 -0
- data/lib/central/machine/digital_ocean/node_provisioner.rb +81 -0
- data/lib/central/machine/random_name.rb +39 -0
- data/lib/central/machine/vagrant.rb +12 -0
- data/lib/central/machine/vagrant/Vagrantfile.master.rb.erb +116 -0
- data/lib/central/machine/vagrant/Vagrantfile.node.rb.erb +32 -0
- data/lib/central/machine/vagrant/cloudinit.yml +73 -0
- data/lib/central/machine/vagrant/master_destroyer.rb +34 -0
- data/lib/central/machine/vagrant/master_provisioner.rb +79 -0
- data/lib/central/machine/vagrant/node_destroyer.rb +38 -0
- data/lib/central/machine/vagrant/node_provisioner.rb +68 -0
- data/lib/central/scripts/completer +157 -0
- data/lib/central/scripts/init +11 -0
- data/spec/central/cli/app/common_spec.rb +150 -0
- data/spec/central/cli/app/deploy_command_spec.rb +598 -0
- data/spec/central/cli/app/docker_helper_spec.rb +102 -0
- data/spec/central/cli/app/scale_spec.rb +49 -0
- data/spec/central/cli/common_spec.rb +117 -0
- data/spec/central/cli/login_command_spec.rb +31 -0
- data/spec/central/cli/master/current_command_spec.rb +55 -0
- data/spec/central/cli/master/use_command_spec.rb +37 -0
- data/spec/central/cli/master/users/invite_command_spec.rb +34 -0
- data/spec/central/cli/master/users/remove_command_spec.rb +26 -0
- data/spec/central/cli/master/users/roles/add_command_spec.rb +34 -0
- data/spec/central/cli/master/users/roles/remove_command_spec.rb +34 -0
- data/spec/central/cli/register_command_spec.rb +56 -0
- data/spec/central/cli/services/containers_command_spec.rb +40 -0
- data/spec/central/cli/services/link_command_spec.rb +38 -0
- data/spec/central/cli/services/restart_command_spec.rb +27 -0
- data/spec/central/cli/services/secrets/link_command_spec.rb +59 -0
- data/spec/central/cli/services/secrets/unlink_command_spec.rb +48 -0
- data/spec/central/cli/services/services_helper_spec.rb +170 -0
- data/spec/central/cli/services/unlink_command_spec.rb +38 -0
- data/spec/central/cli/stacks/trusted_subnets/add_command_spec.rb +37 -0
- data/spec/central/cli/stacks/trusted_subnets/list_command_spec.rb +30 -0
- data/spec/central/cli/stacks/trusted_subnets/remove_command_spec.rb +37 -0
- data/spec/central/cli/version_command_spec.rb +16 -0
- data/spec/fixtures/central.yml +17 -0
- data/spec/fixtures/docker-compose.yml +8 -0
- data/spec/fixtures/mysql.yml +3 -0
- data/spec/fixtures/wordpress-scaled.yml +3 -0
- data/spec/fixtures/wordpress.yml +2 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/support/client_helpers.rb +30 -0
- data/spec/support/fixtures_helpers.rb +7 -0
- data/tasks/rspec.rake +5 -0
- metadata +463 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
require_relative '../../../spec_helper'
|
2
|
+
require 'central/cli/services/unlink_command'
|
3
|
+
|
4
|
+
describe Central::Cli::Services::UnlinkCommand do
|
5
|
+
include ClientHelpers
|
6
|
+
|
7
|
+
describe '#execute' do
|
8
|
+
before(:each) do
|
9
|
+
allow(client).to receive(:get).and_return('links' => [
|
10
|
+
{ 'alias' => 'service-b', 'stack_service_id' => 'stack/service-b' }
|
11
|
+
])
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'requires api url' do
|
15
|
+
expect(subject).to receive(:require_api_url).once
|
16
|
+
subject.run(['service-a', 'service-b'])
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'requires token' do
|
20
|
+
expect(subject).to receive(:require_token).and_return(token)
|
21
|
+
subject.run(['service-a', 'service-b'])
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'aborts if service is not linked' do
|
25
|
+
allow(client).to receive(:get).and_return('links' => [])
|
26
|
+
expect do
|
27
|
+
subject.run(['service-a', 'service-b'])
|
28
|
+
end.to raise_error(SystemExit)
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'sends link to master' do
|
32
|
+
expect(client).to receive(:put).with(
|
33
|
+
'services/test-stack/service-a', links: []
|
34
|
+
)
|
35
|
+
subject.run(['service-a', 'service-b'])
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require_relative '../../../../spec_helper'
|
2
|
+
require 'central/cli/stacks/trusted_subnet_command'
|
3
|
+
require 'central/cli/stacks/trusted_subnets/add_command'
|
4
|
+
|
5
|
+
describe Central::Cli::Stacks::TrustedSubnets::AddCommand do
|
6
|
+
include ClientHelpers
|
7
|
+
|
8
|
+
describe '#execute' do
|
9
|
+
it 'requires api url' do
|
10
|
+
expect(subject).to receive(:require_api_url).once
|
11
|
+
subject.run(%w(stack subnet))
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'requires token' do
|
15
|
+
expect(subject).to receive(:require_token).and_return(token)
|
16
|
+
subject.run(%w(stack subnet))
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'requires stack as param' do
|
20
|
+
expect do
|
21
|
+
subject.run([])
|
22
|
+
end.to raise_error(Clamp::UsageError)
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'adds subnet to stack' do
|
26
|
+
allow(client).to receive(:get).with('stacks/my-stack').and_return(
|
27
|
+
'trusted_subnets' => ['192.168.12.0/24']
|
28
|
+
)
|
29
|
+
expect(client).to receive(:put).with(
|
30
|
+
'stacks/my-stack', hash_including(trusted_subnets: [
|
31
|
+
'192.168.12.0/24', '10.12.0.0/19'
|
32
|
+
])
|
33
|
+
)
|
34
|
+
subject.run(['my-stack', '10.12.0.0/19'])
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require_relative '../../../../spec_helper'
|
2
|
+
require 'central/cli/stacks/trusted_subnet_command'
|
3
|
+
require 'central/cli/stacks/trusted_subnets/list_command'
|
4
|
+
|
5
|
+
describe Central::Cli::Stacks::TrustedSubnets::ListCommand do
|
6
|
+
include ClientHelpers
|
7
|
+
|
8
|
+
describe '#execute' do
|
9
|
+
it 'requires api url' do
|
10
|
+
expect(subject).to receive(:require_api_url).once
|
11
|
+
subject.run(['stack'])
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'requires token' do
|
15
|
+
expect(subject).to receive(:require_token).and_return(token)
|
16
|
+
subject.run(['stack'])
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'requires stack as param' do
|
20
|
+
expect do
|
21
|
+
subject.run([])
|
22
|
+
end.to raise_error(Clamp::UsageError)
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'requests stack details from master' do
|
26
|
+
expect(client).to receive(:get).with('stacks/test-stack')
|
27
|
+
subject.run(['test-stack'])
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require_relative '../../../../spec_helper'
|
2
|
+
require 'central/cli/stacks/trusted_subnet_command'
|
3
|
+
require 'central/cli/stacks/trusted_subnets/remove_command'
|
4
|
+
|
5
|
+
describe Central::Cli::Stacks::TrustedSubnets::RemoveCommand do
|
6
|
+
include ClientHelpers
|
7
|
+
|
8
|
+
describe '#execute' do
|
9
|
+
it 'requires api url' do
|
10
|
+
expect(subject).to receive(:require_api_url).once
|
11
|
+
subject.run(%w(stack subnet))
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'requires token' do
|
15
|
+
expect(subject).to receive(:require_token).and_return(token)
|
16
|
+
subject.run(%w(stack subnet))
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'requires stack as param' do
|
20
|
+
expect do
|
21
|
+
subject.run([])
|
22
|
+
end.to raise_error(Clamp::UsageError)
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'removes subnet from stack' do
|
26
|
+
allow(client).to receive(:get).with('stacks/my-stack').and_return(
|
27
|
+
'trusted_subnets' => ['192.168.12.0/24', '192.168.50.0/24']
|
28
|
+
)
|
29
|
+
expect(client).to receive(:put).with(
|
30
|
+
'stacks/my-stack', hash_including(trusted_subnets: [
|
31
|
+
'192.168.12.0/24'
|
32
|
+
])
|
33
|
+
)
|
34
|
+
subject.run(['my-stack', '192.168.50.0/24'])
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require_relative '../../spec_helper'
|
2
|
+
require 'central/cli/version_command'
|
3
|
+
|
4
|
+
describe Central::Cli::VersionCommand do
|
5
|
+
include ClientHelpers
|
6
|
+
|
7
|
+
describe '#execute' do
|
8
|
+
before(:each) do
|
9
|
+
allow(subject).to receive(:client).and_return(client)
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'runs without errors' do
|
13
|
+
subject.run([])
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
wordpress:
|
2
|
+
extends:
|
3
|
+
file: docker-compose.yml
|
4
|
+
service: wordpress
|
5
|
+
stateful: true
|
6
|
+
environment:
|
7
|
+
- WORDPRESS_DB_PASSWORD=%{project}_secret
|
8
|
+
instances: 2
|
9
|
+
deploy:
|
10
|
+
strategy: ha
|
11
|
+
mysql:
|
12
|
+
extends:
|
13
|
+
file: docker-compose.yml
|
14
|
+
service: mysql
|
15
|
+
stateful: true
|
16
|
+
environment:
|
17
|
+
- MYSQL_ROOT_PASSWORD=%{project}_secret
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# Require this file using `require "spec_helper"` to ensure that it is only
|
4
|
+
# loaded once.
|
5
|
+
#
|
6
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
7
|
+
|
8
|
+
require 'clamp'
|
9
|
+
require 'central/cli/common'
|
10
|
+
require 'central/client'
|
11
|
+
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.run_all_when_everything_filtered = true
|
14
|
+
config.filter_run :focus
|
15
|
+
|
16
|
+
# Run specs in random order to surface order dependencies. If you find an
|
17
|
+
# order dependency and want to debug it, you can fix the order by providing
|
18
|
+
# the seed, which is printed after each run.
|
19
|
+
# --seed 1234
|
20
|
+
config.order = 'random'
|
21
|
+
config.before(:each) do
|
22
|
+
allow(Dir).to receive(:home).and_return('/tmp/')
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require_relative 'support/client_helpers'
|
27
|
+
require_relative 'support/fixtures_helpers'
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module ClientHelpers
|
2
|
+
def self.included(base)
|
3
|
+
base.let(:subject) do
|
4
|
+
described_class.new(File.basename($PROGRAM_NAME))
|
5
|
+
end
|
6
|
+
|
7
|
+
base.let(:client) do
|
8
|
+
spy(:client)
|
9
|
+
end
|
10
|
+
|
11
|
+
base.let(:token) do
|
12
|
+
'1234567'
|
13
|
+
end
|
14
|
+
|
15
|
+
base.let(:settings) do
|
16
|
+
{ 'current_server' => 'alias',
|
17
|
+
'servers' => [
|
18
|
+
{ 'name' => 'some_master', 'url' => 'some_master' },
|
19
|
+
{ 'name' => 'alias', 'url' => 'someurl', 'token' => token }
|
20
|
+
]
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
base.before(:each) do
|
25
|
+
allow(subject).to receive(:client).with(token).and_return(client)
|
26
|
+
allow(subject).to receive(:current_stack).and_return('test-stack')
|
27
|
+
allow(subject).to receive(:settings).and_return(settings)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/tasks/rspec.rake
ADDED
metadata
ADDED
@@ -0,0 +1,463 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: central-cli
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Stefano Harding
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: tty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: excon
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: clamp
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: ruby_dig
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: colorize
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: highline
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: shell-spinner
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: bundler
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.7'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.7'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rake
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '10.0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '10.0'
|
139
|
+
description: Central command line tool
|
140
|
+
email:
|
141
|
+
- riddopic@gmail.com
|
142
|
+
executables:
|
143
|
+
- cm
|
144
|
+
extensions: []
|
145
|
+
extra_rdoc_files:
|
146
|
+
- LICENSE
|
147
|
+
- README.md
|
148
|
+
files:
|
149
|
+
- ".dockerignore"
|
150
|
+
- ".gitignore"
|
151
|
+
- ".rspec"
|
152
|
+
- ".rubocop.yml"
|
153
|
+
- Dockerfile
|
154
|
+
- Gemfile
|
155
|
+
- LICENSE
|
156
|
+
- README.md
|
157
|
+
- Rakefile
|
158
|
+
- VERSION
|
159
|
+
- bin/cm
|
160
|
+
- central-cli.gemspec
|
161
|
+
- central-docker.sh
|
162
|
+
- lib/central/cli/app_command.rb
|
163
|
+
- lib/central/cli/apps/build_command.rb
|
164
|
+
- lib/central/cli/apps/central_yml_generator.rb
|
165
|
+
- lib/central/cli/apps/common.rb
|
166
|
+
- lib/central/cli/apps/deploy_command.rb
|
167
|
+
- lib/central/cli/apps/docker_compose_generator.rb
|
168
|
+
- lib/central/cli/apps/docker_helper.rb
|
169
|
+
- lib/central/cli/apps/dockerfile_generator.rb
|
170
|
+
- lib/central/cli/apps/init_command.rb
|
171
|
+
- lib/central/cli/apps/list_command.rb
|
172
|
+
- lib/central/cli/apps/logs_command.rb
|
173
|
+
- lib/central/cli/apps/monitor_command.rb
|
174
|
+
- lib/central/cli/apps/remove_command.rb
|
175
|
+
- lib/central/cli/apps/restart_command.rb
|
176
|
+
- lib/central/cli/apps/scale_command.rb
|
177
|
+
- lib/central/cli/apps/show_command.rb
|
178
|
+
- lib/central/cli/apps/start_command.rb
|
179
|
+
- lib/central/cli/apps/stop_command.rb
|
180
|
+
- lib/central/cli/auth/aws/create_command.rb
|
181
|
+
- lib/central/cli/auth/aws_command.rb
|
182
|
+
- lib/central/cli/auth/list_command.rb
|
183
|
+
- lib/central/cli/auth_command.rb
|
184
|
+
- lib/central/cli/bytes_helper.rb
|
185
|
+
- lib/central/cli/common.rb
|
186
|
+
- lib/central/cli/container_command.rb
|
187
|
+
- lib/central/cli/containers/exec_command.rb
|
188
|
+
- lib/central/cli/containers/inspect_command.rb
|
189
|
+
- lib/central/cli/etcd/common.rb
|
190
|
+
- lib/central/cli/etcd/get_command.rb
|
191
|
+
- lib/central/cli/etcd/list_command.rb
|
192
|
+
- lib/central/cli/etcd/mkdir_command.rb
|
193
|
+
- lib/central/cli/etcd/remove_command.rb
|
194
|
+
- lib/central/cli/etcd/set_command.rb
|
195
|
+
- lib/central/cli/etcd_command.rb
|
196
|
+
- lib/central/cli/external_registries/add_command.rb
|
197
|
+
- lib/central/cli/external_registries/delete_command.rb
|
198
|
+
- lib/central/cli/external_registries/list_command.rb
|
199
|
+
- lib/central/cli/external_registries/remove_command.rb
|
200
|
+
- lib/central/cli/external_registry_command.rb
|
201
|
+
- lib/central/cli/login_command.rb
|
202
|
+
- lib/central/cli/logout_command.rb
|
203
|
+
- lib/central/cli/master/aws/create_command.rb
|
204
|
+
- lib/central/cli/master/aws_command.rb
|
205
|
+
- lib/central/cli/master/azure/create_command.rb
|
206
|
+
- lib/central/cli/master/azure_command.rb
|
207
|
+
- lib/central/cli/master/digital_ocean/create_command.rb
|
208
|
+
- lib/central/cli/master/digital_ocean_command.rb
|
209
|
+
- lib/central/cli/master/list_command.rb
|
210
|
+
- lib/central/cli/master/use_command.rb
|
211
|
+
- lib/central/cli/master/users/add_role_command.rb
|
212
|
+
- lib/central/cli/master/users/invite_command.rb
|
213
|
+
- lib/central/cli/master/users/list_command.rb
|
214
|
+
- lib/central/cli/master/users/remove_command.rb
|
215
|
+
- lib/central/cli/master/users/remove_role_command.rb
|
216
|
+
- lib/central/cli/master/users_command.rb
|
217
|
+
- lib/central/cli/master/vagrant/create_command.rb
|
218
|
+
- lib/central/cli/master/vagrant/restart_command.rb
|
219
|
+
- lib/central/cli/master/vagrant/ssh_command.rb
|
220
|
+
- lib/central/cli/master/vagrant/start_command.rb
|
221
|
+
- lib/central/cli/master/vagrant/stop_command.rb
|
222
|
+
- lib/central/cli/master/vagrant/terminate_command.rb
|
223
|
+
- lib/central/cli/master/vagrant_command.rb
|
224
|
+
- lib/central/cli/master_command.rb
|
225
|
+
- lib/central/cli/node_command.rb
|
226
|
+
- lib/central/cli/nodes/add_label_command.rb
|
227
|
+
- lib/central/cli/nodes/aws/create_command.rb
|
228
|
+
- lib/central/cli/nodes/aws/restart_command.rb
|
229
|
+
- lib/central/cli/nodes/aws/terminate_command.rb
|
230
|
+
- lib/central/cli/nodes/aws_command.rb
|
231
|
+
- lib/central/cli/nodes/azure/create_command.rb
|
232
|
+
- lib/central/cli/nodes/azure/restart_command.rb
|
233
|
+
- lib/central/cli/nodes/azure/terminate_command.rb
|
234
|
+
- lib/central/cli/nodes/azure_command.rb
|
235
|
+
- lib/central/cli/nodes/digital_ocean/create_command.rb
|
236
|
+
- lib/central/cli/nodes/digital_ocean/restart_command.rb
|
237
|
+
- lib/central/cli/nodes/digital_ocean/terminate_command.rb
|
238
|
+
- lib/central/cli/nodes/digital_ocean_command.rb
|
239
|
+
- lib/central/cli/nodes/label_command.rb
|
240
|
+
- lib/central/cli/nodes/labels/add_command.rb
|
241
|
+
- lib/central/cli/nodes/labels/remove_command.rb
|
242
|
+
- lib/central/cli/nodes/list_command.rb
|
243
|
+
- lib/central/cli/nodes/remove_command.rb
|
244
|
+
- lib/central/cli/nodes/remove_label_command.rb
|
245
|
+
- lib/central/cli/nodes/show_command.rb
|
246
|
+
- lib/central/cli/nodes/ssh_command.rb
|
247
|
+
- lib/central/cli/nodes/update_command.rb
|
248
|
+
- lib/central/cli/nodes/vagrant/create_command.rb
|
249
|
+
- lib/central/cli/nodes/vagrant/restart_command.rb
|
250
|
+
- lib/central/cli/nodes/vagrant/ssh_command.rb
|
251
|
+
- lib/central/cli/nodes/vagrant/start_command.rb
|
252
|
+
- lib/central/cli/nodes/vagrant/stop_command.rb
|
253
|
+
- lib/central/cli/nodes/vagrant/terminate_command.rb
|
254
|
+
- lib/central/cli/nodes/vagrant_command.rb
|
255
|
+
- lib/central/cli/register_command.rb
|
256
|
+
- lib/central/cli/registry/create_command.rb
|
257
|
+
- lib/central/cli/registry/delete_command.rb
|
258
|
+
- lib/central/cli/registry/remove_command.rb
|
259
|
+
- lib/central/cli/registry_command.rb
|
260
|
+
- lib/central/cli/service_command.rb
|
261
|
+
- lib/central/cli/services/add_env_command.rb
|
262
|
+
- lib/central/cli/services/add_secret_command.rb
|
263
|
+
- lib/central/cli/services/container_command.rb
|
264
|
+
- lib/central/cli/services/containers_command.rb
|
265
|
+
- lib/central/cli/services/create_command.rb
|
266
|
+
- lib/central/cli/services/delete_command.rb
|
267
|
+
- lib/central/cli/services/deploy_command.rb
|
268
|
+
- lib/central/cli/services/env_command.rb
|
269
|
+
- lib/central/cli/services/envs/add_command.rb
|
270
|
+
- lib/central/cli/services/envs/list_command.rb
|
271
|
+
- lib/central/cli/services/envs/remove_command.rb
|
272
|
+
- lib/central/cli/services/envs_command.rb
|
273
|
+
- lib/central/cli/services/link_command.rb
|
274
|
+
- lib/central/cli/services/list_command.rb
|
275
|
+
- lib/central/cli/services/logs_command.rb
|
276
|
+
- lib/central/cli/services/monitor_command.rb
|
277
|
+
- lib/central/cli/services/remove_command.rb
|
278
|
+
- lib/central/cli/services/remove_env_command.rb
|
279
|
+
- lib/central/cli/services/remove_secret_command.rb
|
280
|
+
- lib/central/cli/services/restart_command.rb
|
281
|
+
- lib/central/cli/services/scale_command.rb
|
282
|
+
- lib/central/cli/services/secret_command.rb
|
283
|
+
- lib/central/cli/services/secrets/link_command.rb
|
284
|
+
- lib/central/cli/services/secrets/unlink_command.rb
|
285
|
+
- lib/central/cli/services/services_helper.rb
|
286
|
+
- lib/central/cli/services/show_command.rb
|
287
|
+
- lib/central/cli/services/start_command.rb
|
288
|
+
- lib/central/cli/services/stats_command.rb
|
289
|
+
- lib/central/cli/services/stop_command.rb
|
290
|
+
- lib/central/cli/services/unlink_command.rb
|
291
|
+
- lib/central/cli/services/update_command.rb
|
292
|
+
- lib/central/cli/stack_command.rb
|
293
|
+
- lib/central/cli/stack_options.rb
|
294
|
+
- lib/central/cli/stacks/add_user_command.rb
|
295
|
+
- lib/central/cli/stacks/audit_log_command.rb
|
296
|
+
- lib/central/cli/stacks/cloud_config_command.rb
|
297
|
+
- lib/central/cli/stacks/common.rb
|
298
|
+
- lib/central/cli/stacks/create_command.rb
|
299
|
+
- lib/central/cli/stacks/current_command.rb
|
300
|
+
- lib/central/cli/stacks/env_command.rb
|
301
|
+
- lib/central/cli/stacks/list_command.rb
|
302
|
+
- lib/central/cli/stacks/list_users_command.rb
|
303
|
+
- lib/central/cli/stacks/logs_command.rb
|
304
|
+
- lib/central/cli/stacks/remove_command.rb
|
305
|
+
- lib/central/cli/stacks/remove_user_command.rb
|
306
|
+
- lib/central/cli/stacks/show_command.rb
|
307
|
+
- lib/central/cli/stacks/trusted_subnets/add_command.rb
|
308
|
+
- lib/central/cli/stacks/trusted_subnets/list_command.rb
|
309
|
+
- lib/central/cli/stacks/trusted_subnets/remove_command.rb
|
310
|
+
- lib/central/cli/stacks/update_command.rb
|
311
|
+
- lib/central/cli/stacks/use_command.rb
|
312
|
+
- lib/central/cli/stacks/user_command.rb
|
313
|
+
- lib/central/cli/stacks/users/add_command.rb
|
314
|
+
- lib/central/cli/stacks/users/list_command.rb
|
315
|
+
- lib/central/cli/stacks/users/remove_command.rb
|
316
|
+
- lib/central/cli/user/forgot_password_command.rb
|
317
|
+
- lib/central/cli/user/reset_password_command.rb
|
318
|
+
- lib/central/cli/user/verify_command.rb
|
319
|
+
- lib/central/cli/user_command.rb
|
320
|
+
- lib/central/cli/vault/list_command.rb
|
321
|
+
- lib/central/cli/vault/read_command.rb
|
322
|
+
- lib/central/cli/vault/remove_command.rb
|
323
|
+
- lib/central/cli/vault/update_command.rb
|
324
|
+
- lib/central/cli/vault/write_command.rb
|
325
|
+
- lib/central/cli/vault_command.rb
|
326
|
+
- lib/central/cli/version.rb
|
327
|
+
- lib/central/cli/version_command.rb
|
328
|
+
- lib/central/cli/vpn/config_command.rb
|
329
|
+
- lib/central/cli/vpn/create_command.rb
|
330
|
+
- lib/central/cli/vpn/delete_command.rb
|
331
|
+
- lib/central/cli/vpn/remove_command.rb
|
332
|
+
- lib/central/cli/vpn_command.rb
|
333
|
+
- lib/central/cli/whoami_command.rb
|
334
|
+
- lib/central/client.rb
|
335
|
+
- lib/central/errors.rb
|
336
|
+
- lib/central/machine/aws.rb
|
337
|
+
- lib/central/machine/aws/auth_provisioner.rb
|
338
|
+
- lib/central/machine/aws/cloudinit.yml
|
339
|
+
- lib/central/machine/aws/cloudinit_master.yml
|
340
|
+
- lib/central/machine/aws/cloudinit_oauth.yml
|
341
|
+
- lib/central/machine/aws/common.rb
|
342
|
+
- lib/central/machine/aws/master_provisioner.rb
|
343
|
+
- lib/central/machine/aws/node_destroyer.rb
|
344
|
+
- lib/central/machine/aws/node_provisioner.rb
|
345
|
+
- lib/central/machine/azure.rb
|
346
|
+
- lib/central/machine/azure/cloudinit.yml
|
347
|
+
- lib/central/machine/azure/cloudinit_master.yml
|
348
|
+
- lib/central/machine/azure/logger.rb
|
349
|
+
- lib/central/machine/azure/master_provisioner.rb
|
350
|
+
- lib/central/machine/azure/node_destroyer.rb
|
351
|
+
- lib/central/machine/azure/node_provisioner.rb
|
352
|
+
- lib/central/machine/cert_helper.rb
|
353
|
+
- lib/central/machine/cloud_config/cloudinit.yml
|
354
|
+
- lib/central/machine/cloud_config/node_generator.rb
|
355
|
+
- lib/central/machine/common.rb
|
356
|
+
- lib/central/machine/digital_ocean.rb
|
357
|
+
- lib/central/machine/digital_ocean/cloudinit.yml
|
358
|
+
- lib/central/machine/digital_ocean/cloudinit_master.yml
|
359
|
+
- lib/central/machine/digital_ocean/master_provisioner.rb
|
360
|
+
- lib/central/machine/digital_ocean/node_destroyer.rb
|
361
|
+
- lib/central/machine/digital_ocean/node_provisioner.rb
|
362
|
+
- lib/central/machine/random_name.rb
|
363
|
+
- lib/central/machine/vagrant.rb
|
364
|
+
- lib/central/machine/vagrant/Vagrantfile.master.rb.erb
|
365
|
+
- lib/central/machine/vagrant/Vagrantfile.node.rb.erb
|
366
|
+
- lib/central/machine/vagrant/cloudinit.yml
|
367
|
+
- lib/central/machine/vagrant/master_destroyer.rb
|
368
|
+
- lib/central/machine/vagrant/master_provisioner.rb
|
369
|
+
- lib/central/machine/vagrant/node_destroyer.rb
|
370
|
+
- lib/central/machine/vagrant/node_provisioner.rb
|
371
|
+
- lib/central/scripts/completer
|
372
|
+
- lib/central/scripts/init
|
373
|
+
- spec/central/cli/app/common_spec.rb
|
374
|
+
- spec/central/cli/app/deploy_command_spec.rb
|
375
|
+
- spec/central/cli/app/docker_helper_spec.rb
|
376
|
+
- spec/central/cli/app/scale_spec.rb
|
377
|
+
- spec/central/cli/common_spec.rb
|
378
|
+
- spec/central/cli/login_command_spec.rb
|
379
|
+
- spec/central/cli/master/current_command_spec.rb
|
380
|
+
- spec/central/cli/master/use_command_spec.rb
|
381
|
+
- spec/central/cli/master/users/invite_command_spec.rb
|
382
|
+
- spec/central/cli/master/users/remove_command_spec.rb
|
383
|
+
- spec/central/cli/master/users/roles/add_command_spec.rb
|
384
|
+
- spec/central/cli/master/users/roles/remove_command_spec.rb
|
385
|
+
- spec/central/cli/register_command_spec.rb
|
386
|
+
- spec/central/cli/services/containers_command_spec.rb
|
387
|
+
- spec/central/cli/services/link_command_spec.rb
|
388
|
+
- spec/central/cli/services/restart_command_spec.rb
|
389
|
+
- spec/central/cli/services/secrets/link_command_spec.rb
|
390
|
+
- spec/central/cli/services/secrets/unlink_command_spec.rb
|
391
|
+
- spec/central/cli/services/services_helper_spec.rb
|
392
|
+
- spec/central/cli/services/unlink_command_spec.rb
|
393
|
+
- spec/central/cli/stacks/trusted_subnets/add_command_spec.rb
|
394
|
+
- spec/central/cli/stacks/trusted_subnets/list_command_spec.rb
|
395
|
+
- spec/central/cli/stacks/trusted_subnets/remove_command_spec.rb
|
396
|
+
- spec/central/cli/version_command_spec.rb
|
397
|
+
- spec/fixtures/central.yml
|
398
|
+
- spec/fixtures/docker-compose.yml
|
399
|
+
- spec/fixtures/mysql.yml
|
400
|
+
- spec/fixtures/wordpress-scaled.yml
|
401
|
+
- spec/fixtures/wordpress.yml
|
402
|
+
- spec/spec_helper.rb
|
403
|
+
- spec/support/client_helpers.rb
|
404
|
+
- spec/support/fixtures_helpers.rb
|
405
|
+
- tasks/rspec.rake
|
406
|
+
homepage: https://github.com/central/central-cli
|
407
|
+
licenses:
|
408
|
+
- Apache-2.0
|
409
|
+
metadata: {}
|
410
|
+
post_install_message:
|
411
|
+
rdoc_options: []
|
412
|
+
require_paths:
|
413
|
+
- lib
|
414
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
415
|
+
requirements:
|
416
|
+
- - ">="
|
417
|
+
- !ruby/object:Gem::Version
|
418
|
+
version: 2.0.0
|
419
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
420
|
+
requirements:
|
421
|
+
- - ">="
|
422
|
+
- !ruby/object:Gem::Version
|
423
|
+
version: '0'
|
424
|
+
requirements: []
|
425
|
+
rubyforge_project:
|
426
|
+
rubygems_version: 2.4.5.1
|
427
|
+
signing_key:
|
428
|
+
specification_version: 4
|
429
|
+
summary: Central command line tool
|
430
|
+
test_files:
|
431
|
+
- spec/central/cli/app/common_spec.rb
|
432
|
+
- spec/central/cli/app/deploy_command_spec.rb
|
433
|
+
- spec/central/cli/app/docker_helper_spec.rb
|
434
|
+
- spec/central/cli/app/scale_spec.rb
|
435
|
+
- spec/central/cli/common_spec.rb
|
436
|
+
- spec/central/cli/login_command_spec.rb
|
437
|
+
- spec/central/cli/master/current_command_spec.rb
|
438
|
+
- spec/central/cli/master/use_command_spec.rb
|
439
|
+
- spec/central/cli/master/users/invite_command_spec.rb
|
440
|
+
- spec/central/cli/master/users/remove_command_spec.rb
|
441
|
+
- spec/central/cli/master/users/roles/add_command_spec.rb
|
442
|
+
- spec/central/cli/master/users/roles/remove_command_spec.rb
|
443
|
+
- spec/central/cli/register_command_spec.rb
|
444
|
+
- spec/central/cli/services/containers_command_spec.rb
|
445
|
+
- spec/central/cli/services/link_command_spec.rb
|
446
|
+
- spec/central/cli/services/restart_command_spec.rb
|
447
|
+
- spec/central/cli/services/secrets/link_command_spec.rb
|
448
|
+
- spec/central/cli/services/secrets/unlink_command_spec.rb
|
449
|
+
- spec/central/cli/services/services_helper_spec.rb
|
450
|
+
- spec/central/cli/services/unlink_command_spec.rb
|
451
|
+
- spec/central/cli/stacks/trusted_subnets/add_command_spec.rb
|
452
|
+
- spec/central/cli/stacks/trusted_subnets/list_command_spec.rb
|
453
|
+
- spec/central/cli/stacks/trusted_subnets/remove_command_spec.rb
|
454
|
+
- spec/central/cli/version_command_spec.rb
|
455
|
+
- spec/fixtures/central.yml
|
456
|
+
- spec/fixtures/docker-compose.yml
|
457
|
+
- spec/fixtures/mysql.yml
|
458
|
+
- spec/fixtures/wordpress-scaled.yml
|
459
|
+
- spec/fixtures/wordpress.yml
|
460
|
+
- spec/spec_helper.rb
|
461
|
+
- spec/support/client_helpers.rb
|
462
|
+
- spec/support/fixtures_helpers.rb
|
463
|
+
has_rdoc:
|