biosphere 0.1.6 → 0.1.7
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 +4 -4
- data/bin/biosphere +9 -0
- data/lib/biosphere/s3.rb +4 -0
- data/lib/biosphere/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cdc111ae02adaf39cb2c1c0af5d37b0e575da7d4
|
|
4
|
+
data.tar.gz: ec007c7457d7991a4e7c97984e5373cf9a79e568
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52a249f0af8c6e67059990fc0bfff70b6fa053e8fb479597a3aa8480d2fa5229b5eb4a26c4cb552afe556e0d663ef22d1f7718097a24b6b98eda1844b6de7f84
|
|
7
|
+
data.tar.gz: 8094c19e30d6ca4b40ec9a4a7ef6eb0bc06cac54ca7e3a58a38b93be8fa6cde0b0bc6afccd68c5e3245259acd539c54de07090b4cba7fb801d32dbfc5e6939f7
|
data/bin/biosphere
CHANGED
|
@@ -140,6 +140,15 @@ elsif ARGV[0] == "action" && options.src
|
|
|
140
140
|
context = Biosphere::ActionContext.new()
|
|
141
141
|
context.build_directory = options.build_dir
|
|
142
142
|
|
|
143
|
+
if !ARGV[1] || ARGV[1] == "--help" || ARGV[1] == "-h" || ARGV[1] == "help"
|
|
144
|
+
puts "Syntax: biosphere action <command>"
|
|
145
|
+
puts "Available actions:"
|
|
146
|
+
suite.actions.each do |key, value|
|
|
147
|
+
puts "\t#{key}"
|
|
148
|
+
end
|
|
149
|
+
exit -1
|
|
150
|
+
end
|
|
151
|
+
|
|
143
152
|
if suite.call_action(ARGV[1], context)
|
|
144
153
|
else
|
|
145
154
|
STDERR.puts "Could not find action #{ARGV[1]}"
|
data/lib/biosphere/s3.rb
CHANGED
|
@@ -2,6 +2,10 @@ require 'aws-sdk'
|
|
|
2
2
|
|
|
3
3
|
class S3
|
|
4
4
|
def initialize(bucket, main_key)
|
|
5
|
+
if !ENV['AWS_REGION'] || !ENV['AWS_SECRET_KEY'] || !ENV['AWS_ACCESS_KEY']
|
|
6
|
+
puts "You need to specify AWS_REGION, AWS_ACCESS_KEY and AWS_SECRET_KEY"
|
|
7
|
+
exit -1
|
|
8
|
+
end
|
|
5
9
|
@client = Aws::S3::Client.new
|
|
6
10
|
@bucket_name = bucket
|
|
7
11
|
@main_key = main_key
|
data/lib/biosphere/version.rb
CHANGED