server_tools 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1d1e705615d40f72387d06d7ba67ea2949eb4fc
4
- data.tar.gz: 366bf428c6881894a9e7e6d5b1157116926a744f
3
+ metadata.gz: 960e2e6e03a39e666f519268c5756686ecd47f6d
4
+ data.tar.gz: 0d136f817aebaaf55c883819bf8779e44aecb835
5
5
  SHA512:
6
- metadata.gz: 257b31687f2fe3c1ea849c4db133a1f2a9fd09348e20fb6e65bef5d45e6c12e0d28ebf949c4b99c357ad4ac3db74580f0efaf495de33cfdcf0bc62cf16a3fa97
7
- data.tar.gz: 716da4c80a630efd45973f34fcf5470d74be316b93c940ceb6728054a2325216a1c6ef0770597418d768a6a1c112d2aabe95c57f9f5ac9fe70abfd2043bfd0a9
6
+ metadata.gz: 768b5c0a4e0cd3bcf9ba1afb5c191de0c8b3520d31704db275b6ec1235f075e19d776affbbf7b62968da73749e9f9a06babd8780543ea7acbe59010bf67b65ec
7
+ data.tar.gz: 65e8e353e54aba130ba4cc3089f776bb3330ac9710ff8484228acc8bc1eb3e34b784921a7c24e1835672b31219862d5735143712a9fed5833b2df7a4eb8748ba
data/README.md CHANGED
@@ -7,7 +7,7 @@ A bunch of tools to provision (via Chef) and deploy packages to servers.
7
7
  Available commands:
8
8
 
9
9
  - `bootstrap`: Installs Chef on the provided host. Requires [ChefDK](https://downloads.chef.io/chef-dk/) to be installed.
10
- - `provision`: Runs chef with the provided list of roles/recipes
10
+ - `provision`: Runs chef with the provided list of flags to chef client
11
11
  - `install-deb-package`: Installs a local Debian package on the remote host (optionally purges the older version)
12
12
 
13
13
  All command line flags can be seen by running `server_tools help`.
@@ -33,10 +33,10 @@ module ServerTools
33
33
  end
34
34
 
35
35
  desc 'provision HOSTNAME/IP', 'run chef-client on host with given recipes/roles'
36
- option :roles,
37
- desc: 'The recipes/roles to apply on the host',
38
- required: true,
39
- type: :array
36
+ option :chef_client_flags,
37
+ desc: 'Options passed to chef-client',
38
+ required: false,
39
+ type: :string
40
40
  def provision(hostname)
41
41
  shell_out(ServerTools::Provision.new(hostname, options).command)
42
42
  end
@@ -13,7 +13,7 @@ module ServerTools
13
13
  "ssh #{hostname}",
14
14
  "-t -t",
15
15
  "#{ssh_opts(options)}",
16
- "sudo /usr/bin/chef-client -o'#{options[:roles].join(',')}'"
16
+ "sudo /usr/bin/chef-client #{options[:chef_client_flags]}"
17
17
  ].join(' ')
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module ServerTools
2
- VERSION = "0.1.6"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Decomplect Software LLP
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-01 00:00:00.000000000 Z
11
+ date: 2015-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler