cloudfiles_cli 0.0.7 → 0.0.8
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 +13 -5
- data/cloudfiles_cli.gemspec +3 -3
- data/lib/cloudfiles_cli/cli.rb +5 -0
- data/lib/cloudfiles_cli/config.rb +7 -1
- data/lib/cloudfiles_cli/version.rb +1 -1
- metadata +12 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
Njc1ZjVlYTZhZmViMTJhM2E1OTQ4NDlkNzY5MDU1MzA1ZDEwMmE1NQ==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
ZmJmZGJlZDI2NWRmYmUzMWQ2ZTAwZjhjNTQ4OGY1MWU3MGI4YWI1Nw==
|
|
5
7
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
ZTk2MzFhOTUxNTdmNGE5ZjY1YjZlYmZiZDYwYmY0MmJmZjM5Y2VjNDU5ZDE3
|
|
10
|
+
YmYxZTIxYzkxNjI3M2ViY2QwOWJmNmNjMzY1MjA1ZWE2NTA3MzgzMzgzZGNl
|
|
11
|
+
MWFkZDc5OTcwMTJjNDViMjU1ZGNjMWU4NDU3MGVmM2FmM2UyZDg=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
MmU3MGIzZTMzZmZkM2YxMzk1NDQwNzg1ZTcxYWMxMmFkZjZjNTNkYmU1ODhj
|
|
14
|
+
NTk0OWE2YmExYWVmZjM5ODE2ZjZiODYzODM3MzA2YTA5MGE4MGE2M2UwNmEz
|
|
15
|
+
YzE0OGIwMDc5YTNkMmY0MTgxNDg4NzViNjVmZDE0YjI1ZDUxZWI=
|
data/cloudfiles_cli.gemspec
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
require File.expand_path('../lib/cloudfiles_cli/version', __FILE__)
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |gem|
|
|
5
|
-
gem.authors = ["Jacob Atzen"]
|
|
6
|
-
gem.email = ["jacob@incremental.dk"]
|
|
5
|
+
gem.authors = ["Jacob Atzen", "Martin Neiiendam"]
|
|
6
|
+
gem.email = ["jacob@incremental.dk", "mn@lokalebasen.dk"]
|
|
7
7
|
gem.description = %q{Simple utility for uploading and downloading files from Cloudfiles}
|
|
8
8
|
gem.summary = %q{Easily upload and download files from Cloudfiles}
|
|
9
9
|
gem.homepage = "https://github.com/lokalebasen/cloudfiles_cli"
|
|
@@ -15,6 +15,6 @@ Gem::Specification.new do |gem|
|
|
|
15
15
|
gem.require_paths = ["lib"]
|
|
16
16
|
gem.version = CloudfilesCli::VERSION
|
|
17
17
|
gem.add_dependency "thor"
|
|
18
|
-
gem.add_dependency "fog", "
|
|
18
|
+
gem.add_dependency "fog", ">= 1.18"
|
|
19
19
|
gem.executables << 'cloudfiles_cli'
|
|
20
20
|
end
|
data/lib/cloudfiles_cli/cli.rb
CHANGED
|
@@ -4,6 +4,7 @@ module CloudfilesCli
|
|
|
4
4
|
option :username
|
|
5
5
|
option :api_key
|
|
6
6
|
option :auth_url
|
|
7
|
+
option :region
|
|
7
8
|
def download(container, remote_filename, local_filename=nil)
|
|
8
9
|
Transactions.new(Config.new(options)).download(container, remote_filename, local_filename || File.basename(remote_filename))
|
|
9
10
|
end
|
|
@@ -12,6 +13,7 @@ module CloudfilesCli
|
|
|
12
13
|
option :username
|
|
13
14
|
option :api_key
|
|
14
15
|
option :auth_url
|
|
16
|
+
option :region
|
|
15
17
|
def upload(container, local_filename, remote_filename=nil)
|
|
16
18
|
Transactions.new(Config.new(options)).upload(container, local_filename, remote_filename || File.basename(local_filename))
|
|
17
19
|
end
|
|
@@ -20,6 +22,7 @@ module CloudfilesCli
|
|
|
20
22
|
option :username
|
|
21
23
|
option :api_key
|
|
22
24
|
option :auth_url
|
|
25
|
+
option :region
|
|
23
26
|
def exists(container, remote_filename)
|
|
24
27
|
Transactions.new(Config.new(options)).exists(container, remote_filename)
|
|
25
28
|
end
|
|
@@ -28,6 +31,7 @@ module CloudfilesCli
|
|
|
28
31
|
option :username
|
|
29
32
|
option :api_key
|
|
30
33
|
option :auth_url
|
|
34
|
+
option :region
|
|
31
35
|
def list(container = nil)
|
|
32
36
|
Transactions.new(Config.new(options)).list(container)
|
|
33
37
|
end
|
|
@@ -36,6 +40,7 @@ module CloudfilesCli
|
|
|
36
40
|
option :username
|
|
37
41
|
option :api_key
|
|
38
42
|
option :auth_url
|
|
43
|
+
option :region
|
|
39
44
|
def delete(container, *remote_filenames)
|
|
40
45
|
Transactions.new(Config.new(options)).delete(container, remote_filenames)
|
|
41
46
|
end
|
|
@@ -17,11 +17,17 @@ module CloudfilesCli
|
|
|
17
17
|
options[:auth_url] || ENV['CLOUDFILES_AUTH_URL'] || raise("No auth url provided")
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
+
def region
|
|
21
|
+
options[:region] || ENV['CLOUDFILES_REGION'] || raise("No region provided")
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
|
|
20
25
|
def hash
|
|
21
26
|
{
|
|
22
27
|
:rackspace_username => username,
|
|
23
28
|
:rackspace_api_key => api_key,
|
|
24
|
-
:rackspace_auth_url => auth_url
|
|
29
|
+
:rackspace_auth_url => auth_url,
|
|
30
|
+
:rackspace_region => region.to_sym,
|
|
25
31
|
}
|
|
26
32
|
end
|
|
27
33
|
end
|
metadata
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudfiles_cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jacob Atzen
|
|
8
|
+
- Martin Neiiendam
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
+
date: 2014-03-17 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: thor
|
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
|
16
17
|
requirements:
|
|
17
|
-
- - '>='
|
|
18
|
+
- - ! '>='
|
|
18
19
|
- !ruby/object:Gem::Version
|
|
19
20
|
version: '0'
|
|
20
21
|
type: :runtime
|
|
21
22
|
prerelease: false
|
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
24
|
requirements:
|
|
24
|
-
- - '>='
|
|
25
|
+
- - ! '>='
|
|
25
26
|
- !ruby/object:Gem::Version
|
|
26
27
|
version: '0'
|
|
27
28
|
- !ruby/object:Gem::Dependency
|
|
28
29
|
name: fog
|
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
|
30
31
|
requirements:
|
|
31
|
-
- -
|
|
32
|
+
- - ! '>='
|
|
32
33
|
- !ruby/object:Gem::Version
|
|
33
34
|
version: '1.18'
|
|
34
35
|
type: :runtime
|
|
35
36
|
prerelease: false
|
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
38
|
requirements:
|
|
38
|
-
- -
|
|
39
|
+
- - ! '>='
|
|
39
40
|
- !ruby/object:Gem::Version
|
|
40
41
|
version: '1.18'
|
|
41
42
|
description: Simple utility for uploading and downloading files from Cloudfiles
|
|
42
43
|
email:
|
|
43
44
|
- jacob@incremental.dk
|
|
45
|
+
- mn@lokalebasen.dk
|
|
44
46
|
executables:
|
|
45
47
|
- cloudfiles_cli
|
|
46
48
|
extensions: []
|
|
@@ -67,18 +69,19 @@ require_paths:
|
|
|
67
69
|
- lib
|
|
68
70
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
71
|
requirements:
|
|
70
|
-
- - '>='
|
|
72
|
+
- - ! '>='
|
|
71
73
|
- !ruby/object:Gem::Version
|
|
72
74
|
version: '0'
|
|
73
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
76
|
requirements:
|
|
75
|
-
- - '>='
|
|
77
|
+
- - ! '>='
|
|
76
78
|
- !ruby/object:Gem::Version
|
|
77
79
|
version: '0'
|
|
78
80
|
requirements: []
|
|
79
81
|
rubyforge_project:
|
|
80
|
-
rubygems_version: 2.
|
|
82
|
+
rubygems_version: 2.1.11
|
|
81
83
|
signing_key:
|
|
82
84
|
specification_version: 4
|
|
83
85
|
summary: Easily upload and download files from Cloudfiles
|
|
84
86
|
test_files: []
|
|
87
|
+
has_rdoc:
|