edurange 0.0.6 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b5f9a12ef3e3e3242cb6dffe025d9b6ec5e4984
4
- data.tar.gz: 0bc9b8b61ae3693ffd3a9e2ad9a62636031a6461
3
+ metadata.gz: 017dc536e75f5164404d3659ba3a1c68729207b3
4
+ data.tar.gz: d51b0e632fc529652168d10932e9d93e29721f57
5
5
  SHA512:
6
- metadata.gz: 9108c120ef900103fb18e9f28c7156849338ffc21bc1c576e78fc80ba77211ca7452c8f3fa5c8f8c331391490f8e6365bbde9b3057523db1939ed05a5ed36b70
7
- data.tar.gz: 7d6336dee218ab0b6d58cdcc0efa6a7efebc04bb83e7e46ee2ab38ea17aa8f4838a6662fea8fada9906d863ecdd37fa239fed7ed711e83bba3901a00fc6a88b3
6
+ metadata.gz: c811d0e45c414ddc12bc52cffd9b1ce93f07422fb6c8f76ca5e2c14402628f6eacd35b5873c67881ff014e033297af55bbb170f9b8a67b5b7d0557ac5d5d060b
7
+ data.tar.gz: c7f57a51cbd4d162b59ca2b284f59b7f50ea41b7bfec0128f5ee9c9a20845181e3c0ef3cfc2efc1950b3c385e8f19324c2615c26e0d6dd323a3c8ea173c9c25b
@@ -18,7 +18,6 @@ module Edurange
18
18
  def run(command)
19
19
  # runs an ec2 command with full path.
20
20
  command = EC2_UTILS_PATH + command
21
- puts "Creating instance (ami id: #{@ami_id})"
22
21
  `#{command}`
23
22
  end
24
23
 
@@ -26,6 +25,7 @@ module Edurange
26
25
  # Pref user-data-file for ourselves
27
26
 
28
27
  # Create & run instance, setting instance_id and IP to match the newly created ami
28
+ puts "Creating instance (ami id: #{@ami_id}, size: #{@vm_size})"
29
29
  command = "ec2-run-instances #{@ami_id} -t #{@vm_size} --region us-east-1 --key #{@key_name} --user-data-file my-user-script.sh"
30
30
  self.run(command)
31
31
  @instance_id = self.get_last_instance_id()
@@ -13,7 +13,6 @@ module Edurange
13
13
  destination => '#{dest}
14
14
  }"
15
15
 
16
- p puppet_rule
17
16
  puppet_rules += puppet_rule
18
17
  end
19
18
  puppet_rules += "\n}"
@@ -1,3 +1,3 @@
1
1
  module Edurange
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.9"
3
3
  end
data/lib/edurange.rb CHANGED
@@ -46,7 +46,6 @@ module Edurange
46
46
  def self.users_to_bash(users)
47
47
  shell = ""
48
48
  users.each do |user|
49
- p user
50
49
  if user['password']
51
50
  #shell += "\n"
52
51
  #shell += "sudo useradd -m #{user[:login]}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edurange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Boesen