danarchy_deploy 0.1.5 → 0.1.6

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: a482f91406ebff209e507ae56bc4be82c8c7ca80
4
- data.tar.gz: 0c0d2dff7477e981dcd057ad2f5919dc92758309
3
+ metadata.gz: b5e1c5db04d2e3bc75aba83dfc239e8c3a4f75af
4
+ data.tar.gz: 27db141bfb44593af2d57be7c1aa423fcbacd3b5
5
5
  SHA512:
6
- metadata.gz: 368cbeddce75725922abe8412e89bb2d74baa9c06a4dc86ee9523e6cddb733dfb77e80b9ab92beda895d80a736f908231732a78b938fe3147cb918e3dd0915be
7
- data.tar.gz: 26416496b1c7c096b108161ed2f5ef40a972dd6c4555a26cd3efd16f58ab0a9c02b1ad26c4a5720976119b4cadc83b77ceddd84e8a743d63de5079b2dfaaff83
6
+ metadata.gz: b9c8192e981c35116735b08894bb6867f82009944ddc6f4b2c951af89685454fc0c479ca251d743e877f60a5e3f6eefddcc2433205ffa4f6e673d084058ae868
7
+ data.tar.gz: f04f67c7572d33b0e88784ec35ae780481e829298b6ad64983917375e99630d51a90a4f8a5d51383c6c091c9f724ac07ea2b731bd5c2ed66b8d3ce5e8a9de5cc
@@ -23,7 +23,7 @@ module DanarchyDeploy
23
23
 
24
24
  private
25
25
  def self.groupadd(group, options)
26
- groupadd_cmd = "groupadd #{group[:groupname]} "
26
+ groupadd_cmd = "sudo groupadd #{group[:groupname]} "
27
27
  groupadd_cmd += "--gid #{group[:gid]} " if group[:gid]
28
28
  groupadd_cmd += "--system " if group[:system]
29
29
  if options[:pretend]
@@ -34,7 +34,7 @@ module DanarchyDeploy
34
34
  end
35
35
 
36
36
  def self.groupdel(group, options)
37
- groupdel_cmd = "groupdel #{group[:groupname]}"
37
+ groupdel_cmd = "sudo groupdel #{group[:groupname]}"
38
38
  if options[:pretend]
39
39
  puts "\tFake run: #{groupdel_cmd}"
40
40
  else
@@ -58,7 +58,7 @@ module DanarchyDeploy
58
58
 
59
59
  private
60
60
  def self.useradd(user, options)
61
- useradd_cmd = "useradd #{user[:username]} "
61
+ useradd_cmd = "sudo useradd #{user[:username]} "
62
62
  useradd_cmd += "--home-dir #{user[:home]} " if user[:home]
63
63
  useradd_cmd += "--uid #{user[:uid]} " if user[:uid]
64
64
  useradd_cmd += "--gid #{user[:gid]} " if user[:gid]
@@ -73,7 +73,7 @@ module DanarchyDeploy
73
73
  end
74
74
 
75
75
  def self.userdel(user, options)
76
- userdel_cmd = "userdel --remove #{user[:username]}"
76
+ userdel_cmd = "sudo userdel --remove #{user[:username]}"
77
77
  if options[:pretend]
78
78
  puts "\tFake run: #{userdel_cmd}"
79
79
  else
@@ -94,7 +94,7 @@ module DanarchyDeploy
94
94
 
95
95
  def self.updategroups(user, options)
96
96
  groups = user[:groups].join(',')
97
- groupupdate_cmd = "usermod #{user[:username]} --groups #{groups}"
97
+ groupupdate_cmd = "sudo usermod #{user[:username]} --groups #{groups}"
98
98
  if options[:pretend]
99
99
  puts "\tFake run: #{groupupdate_cmd}"
100
100
  else
@@ -1,3 +1,3 @@
1
1
  module DanarchyDeploy
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danarchy_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan James
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-11 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danarchy_couchdb