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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a07e729f2dbc77700c277a948a0529faa3d0c81
4
- data.tar.gz: 2ff1ccba7a9e842cc4565f0f92d138440e5eca9d
3
+ metadata.gz: ba232a5231659e5f84e30c0b43f0d5bb17a16004
4
+ data.tar.gz: e7a8f9f4a553b9ce387ef72cb912f78ad41ef9f9
5
5
  SHA512:
6
- metadata.gz: 68fd2579bd7514018eee930597ee499e63010c00b4295df1d6f15f41d51263d414f4c3538166aba41a09c5105da0979eea46f94401872831ec3fe56ab9196a25
7
- data.tar.gz: a05676efa969295ca9df57ab4e831cc72b71319358399a90a6d057e37bae513cd91d77700809a0ebecfa2020c2a4cc91f7090ff35221b4e5d19823956cc616e4
6
+ metadata.gz: f3c49d662c4a34960ab0adec84c1dc1dc287c4cc3d7b05348cc976085f82c01ded3a582e4c8bc144e22f9742bf12f60446ca2a3d372faa0f4ea0c0a4ee1b0d39
7
+ data.tar.gz: bfd51a51953e2ffa57e9e094d509ca316502e84359ba59386fc63792f72a063963bfcef8cd72c123bb9996e6fc9436ca826f7df278cc9ebcb6883f534ae1be7a
@@ -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}")
@@ -1,5 +1,5 @@
1
1
  module Greyatom
2
2
  module Cli
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
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.5
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-07 00:00:00.000000000 Z
11
+ date: 2017-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler