greyatom-cli 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/greyatom/lesson/open.rb +11 -0
- data/lib/greyatom/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: ba232a5231659e5f84e30c0b43f0d5bb17a16004
|
4
|
+
data.tar.gz: e7a8f9f4a553b9ce387ef72cb912f78ad41ef9f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3c49d662c4a34960ab0adec84c1dc1dc287c4cc3d7b05348cc976085f82c01ded3a582e4c8bc144e22f9742bf12f60446ca2a3d372faa0f4ea0c0a4ee1b0d39
|
7
|
+
data.tar.gz: bfd51a51953e2ffa57e9e094d509ca316502e84359ba59386fc63792f72a063963bfcef8cd72c123bb9996e6fc9436ca826f7df278cc9ebcb6883f534ae1be7a
|
data/lib/greyatom/lesson/open.rb
CHANGED
@@ -28,6 +28,8 @@ module Greyatom
|
|
28
28
|
forkCurrentLesson
|
29
29
|
# clone forked lesson into machine
|
30
30
|
cloneCurrentLesson
|
31
|
+
# change group owner
|
32
|
+
change_grp_owner
|
31
33
|
end
|
32
34
|
# install dependencies
|
33
35
|
# cd into it and invoke bash
|
@@ -69,6 +71,15 @@ module Greyatom
|
|
69
71
|
end
|
70
72
|
end
|
71
73
|
|
74
|
+
def change_grp_owner
|
75
|
+
results = system("chgrp -R ubuntu #{rootDir}/#{lessonName}")
|
76
|
+
if results
|
77
|
+
puts "..."
|
78
|
+
else
|
79
|
+
puts "Couldn't change group ownership"
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
72
83
|
def cdToLesson
|
73
84
|
puts "Opening lesson..."
|
74
85
|
Dir.chdir("#{rootDir}/#{lessonName}")
|
data/lib/greyatom/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: greyatom-cli
|
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
|
- greyatom-edu-tech
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|