superbot-cloud 0.1.4 → 0.1.5
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad8d57f93658bd49900d502cbd355763cce9837908caaad4ff30a652a472a57b
|
4
|
+
data.tar.gz: 191a490401c08be59898d5a5a6ca2ad489bd934c6084fd62954db3e4bb6d5714
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e8428292eb1719005dc3074fa98c5f53eb0b6a3ce7d6364b2baa16f583fd56bf5566e317d67583a42c8f0fb757162c70c4be0a9db6c1df747140e4e595b3da3
|
7
|
+
data.tar.gz: 01e65c840d5fd722b6579316c3330ddb2b8bb9408e4204bd919cdc29469db2dbd2fe444fbfc6d0dbc61cf3cbecc2f054dc9f3901f8fe50d3ed74c48fb4f326cf
|
data/Gemfile.lock
CHANGED
@@ -10,12 +10,9 @@ module Superbot
|
|
10
10
|
module Cloud
|
11
11
|
module Test
|
12
12
|
class UploadCommand < Clamp::Command
|
13
|
-
include Superbot::Validations
|
14
13
|
include Superbot::Cloud::Validations
|
15
14
|
|
16
|
-
parameter "PATH", "the path to folder containing tests to upload"
|
17
|
-
validates_project_path path
|
18
|
-
end
|
15
|
+
parameter "PATH", "the path to folder containing tests to upload"
|
19
16
|
|
20
17
|
option ["-o", "--org"], "ORGANIZATION", "Organization to upload tests for", attribute_name: :organization
|
21
18
|
|
@@ -25,8 +22,8 @@ module Superbot
|
|
25
22
|
end
|
26
23
|
|
27
24
|
def upload_tests
|
28
|
-
|
29
|
-
|
25
|
+
puts "Uploading files from #{path}..."
|
26
|
+
Dir.glob(File.join(path, '*')) do |test_file|
|
30
27
|
filename = File.basename(test_file)
|
31
28
|
content_type = Marcel::MimeType.for(Pathname.new(test_file), name: filename)
|
32
29
|
|
@@ -11,8 +11,13 @@ module Superbot
|
|
11
11
|
class CloudCommand < Clamp::Command
|
12
12
|
subcommand ['version'], 'Superbot cloud version', Cloud::VersionCommand
|
13
13
|
subcommand ['login'], 'Login to superbot cloud', Cloud::LoginCommand
|
14
|
-
subcommand
|
15
|
-
subcommand ['test'], "Manage your tests", Cloud::TestCommand
|
14
|
+
subcommand(['org'], 'Manage your organizations', Cloud::OrganizationCommand) if ENV['SUPERBOT_FEAT_CLOUD_ORG'] == 'true'
|
15
|
+
subcommand ['test'], "Manage your tests", Cloud::TestCommand if ENV['SUPERBOT_FEAT_CLOUD_TEST'] == 'true'
|
16
|
+
|
17
|
+
option ['-v', '--version'], :flag, "Show version information" do
|
18
|
+
puts Superbot::Cloud::VERSION
|
19
|
+
exit 0
|
20
|
+
end
|
16
21
|
|
17
22
|
def self.run
|
18
23
|
super
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superbot-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Superbots
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|