biosphere 0.1.6 → 0.1.7

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: 2a93f27a3fdae5a83a0660ac99553064fdf7dd23
4
- data.tar.gz: befbfafe7f4123b8862810f50a6f54bf7f5c067d
3
+ metadata.gz: cdc111ae02adaf39cb2c1c0af5d37b0e575da7d4
4
+ data.tar.gz: ec007c7457d7991a4e7c97984e5373cf9a79e568
5
5
  SHA512:
6
- metadata.gz: ff359916860a0d269e1e8647f3dff2ba2f0ba7fd490c8f18737c541a7523ee01ee55a830c564df4081189233b4c80716ad84482c048f1b4dbb1c8a6dfd7a1238
7
- data.tar.gz: 82c4d2ea0a5126c4fe9808cc8a8154839c7d16a6c479ae16c077082c509060dcffbd596ee82586cfafc1a068671d0c7163108f7881e3d291653add32d05ef804
6
+ metadata.gz: 52a249f0af8c6e67059990fc0bfff70b6fa053e8fb479597a3aa8480d2fa5229b5eb4a26c4cb552afe556e0d663ef22d1f7718097a24b6b98eda1844b6de7f84
7
+ data.tar.gz: 8094c19e30d6ca4b40ec9a4a7ef6eb0bc06cac54ca7e3a58a38b93be8fa6cde0b0bc6afccd68c5e3245259acd539c54de07090b4cba7fb801d32dbfc5e6939f7
@@ -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]}"
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Biosphere
2
- Version = "0.1.6"
2
+ Version = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biosphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juho Mäkinen