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 +4 -4
- data/lib/danarchy_deploy/groups.rb +2 -2
- data/lib/danarchy_deploy/users.rb +3 -3
- data/lib/danarchy_deploy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5e1c5db04d2e3bc75aba83dfc239e8c3a4f75af
|
4
|
+
data.tar.gz: 27db141bfb44593af2d57be7c1aa423fcbacd3b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danarchy_couchdb
|