openstudio-aws 0.3.2 → 0.4.0.alpha1

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.
@@ -6,49 +6,5 @@ describe OpenStudio::Aws::Config do
6
6
  @config = OpenStudio::Aws::Config.new
7
7
  expect(@config).not_to be_nil
8
8
  end
9
-
10
- it 'should create a new file' do
11
- local_file = 'test.config'
12
- File.delete local_file if File.exist? local_file
13
-
14
- expect { OpenStudio::Aws::Config.new local_file }.to raise_error /Config file not found. A template has been added, please edit and save: test.config/
15
- expect(File.exist?(local_file)).to eq true
16
-
17
- # read the file and make sure that the template is there
18
- config = YAML.load(File.read(local_file))
19
- expect(config[:access_key_id]).to eq 'YOUR_ACCESS_KEY_ID'
20
- expect(config[:secret_access_key]).to eq 'YOUR_SECRET_ACCESS_KEY'
21
- end
22
-
23
- it 'should read old format' do
24
- # make sure that we can read the old format which has non-symoblized keys
25
- local_file = 'test_custom_old.config'
26
-
27
- data = {
28
- 'access_key_id' => 'abcd',
29
- 'secret_access_key' => 'efgh'
30
- }
31
-
32
- File.open(local_file, 'w') { |f| f << data.to_yaml }
33
- config = OpenStudio::Aws::Config.new local_file
34
- expect(config.access_key).to eq 'abcd'
35
- expect(config.secret_key).to eq 'efgh'
36
- end
37
-
38
- it 'should read a custom file' do
39
- local_file = 'test_custom.config'
40
-
41
- # create the file
42
- data = {
43
- access_key_id: 'random_key',
44
- secret_access_key: 'random_secret_key'
45
- }
46
-
47
- File.open(local_file, 'w') { |f| f << data.to_yaml }
48
-
49
- config = OpenStudio::Aws::Config.new local_file
50
- expect(config.access_key).to eq 'random_key'
51
- expect(config.secret_key).to eq 'random_secret_key'
52
- end
53
9
  end
54
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Long
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-16 00:00:00.000000000 Z
11
+ date: 2015-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '1.3'
47
+ version: '1.4'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '1.3'
54
+ version: '1.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sshkey
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '1.6'
61
+ version: '1.7'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '1.6'
68
+ version: '1.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -115,12 +115,14 @@ files:
115
115
  - lib/openstudio/aws/aws.rb
116
116
  - lib/openstudio/aws/config.rb
117
117
  - lib/openstudio/aws/version.rb
118
+ - lib/openstudio/core_ext/hash.rb
118
119
  - lib/openstudio/lib/ami_list.rb
119
120
  - lib/openstudio/lib/ami_stable_version.json
120
121
  - lib/openstudio/lib/mongoid.yml.template
121
122
  - lib/openstudio/lib/openstudio_aws_instance.rb
122
123
  - lib/openstudio/lib/openstudio_aws_logger.rb
123
124
  - lib/openstudio/lib/openstudio_aws_wrapper.rb
125
+ - lib/openstudio/lib/openstudio_cloud_watch.rb
124
126
  - lib/openstudio/lib/server_script.sh.template
125
127
  - lib/openstudio/lib/worker_script.sh.template
126
128
  - openstudio-aws.gemspec
@@ -152,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
154
  version: 1.3.6
153
155
  requirements: []
154
156
  rubyforge_project:
155
- rubygems_version: 2.0.14.1
157
+ rubygems_version: 2.4.5
156
158
  signing_key:
157
159
  specification_version: 4
158
160
  summary: Start AWS EC2 instances for running distributed OpenStudio-based analyses