fog 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/fog +24 -0
- data/fog.gemspec +5 -2
- data/lib/fog/collection.rb +3 -3
- metadata +6 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.12
|
data/bin/fog
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require File.join(File.dirname(__FILE__), '..', 'lib', 'fog')
|
3
|
+
require 'irb'
|
4
|
+
require 'yaml'
|
5
|
+
|
6
|
+
if File.exists?(File.expand_path('~/.fog'))
|
7
|
+
@credentials = YAML.load(File.open(File.expand_path('~/.fog')).read)
|
8
|
+
end
|
9
|
+
|
10
|
+
@s3 = Fog::AWS::S3.new(
|
11
|
+
:aws_access_key_id => @credentials['aws_access_key_id'],
|
12
|
+
:aws_secret_access_key => @credentials['aws_secret_access_key']
|
13
|
+
)
|
14
|
+
|
15
|
+
def buckets
|
16
|
+
@s3.buckets
|
17
|
+
end
|
18
|
+
|
19
|
+
ARGV.clear # Avoid passing args to IRB
|
20
|
+
IRB.setup(nil)
|
21
|
+
@irb = IRB::Irb.new(nil)
|
22
|
+
IRB.conf[:MAIN_CONTEXT] = @irb.context
|
23
|
+
@irb.context.workspace = IRB::WorkSpace.new(binding)
|
24
|
+
catch(:IRB_EXIT) { @irb.eval_input }
|
data/fog.gemspec
CHANGED
@@ -5,13 +5,15 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fog}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.12"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Wesley Beary"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-10-01}
|
13
|
+
s.default_executable = %q{fog}
|
13
14
|
s.description = %q{brings clouds to you}
|
14
15
|
s.email = %q{me@geemus.com}
|
16
|
+
s.executables = ["fog"]
|
15
17
|
s.extra_rdoc_files = [
|
16
18
|
"README.rdoc"
|
17
19
|
]
|
@@ -26,6 +28,7 @@ Gem::Specification.new do |s|
|
|
26
28
|
"benchs/params.rb",
|
27
29
|
"benchs/parse_vs_push.rb",
|
28
30
|
"benchs/stripping.rb",
|
31
|
+
"bin/fog",
|
29
32
|
"fog.gemspec",
|
30
33
|
"lib/fog.rb",
|
31
34
|
"lib/fog/aws.rb",
|
data/lib/fog/collection.rb
CHANGED
@@ -29,10 +29,10 @@ module Fog
|
|
29
29
|
data << " #{attribute}=#{send(attribute).inspect}"
|
30
30
|
end
|
31
31
|
data << " ["
|
32
|
-
for
|
33
|
-
data << "#{
|
32
|
+
for member in self
|
33
|
+
data << "#{member.inspect},"
|
34
34
|
end
|
35
|
-
data.
|
35
|
+
data.chop!
|
36
36
|
data << "]>"
|
37
37
|
end
|
38
38
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wesley Beary
|
@@ -9,8 +9,8 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
13
|
-
default_executable:
|
12
|
+
date: 2009-10-01 00:00:00 -07:00
|
13
|
+
default_executable: fog
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mime-types
|
@@ -44,8 +44,8 @@ dependencies:
|
|
44
44
|
version:
|
45
45
|
description: brings clouds to you
|
46
46
|
email: me@geemus.com
|
47
|
-
executables:
|
48
|
-
|
47
|
+
executables:
|
48
|
+
- fog
|
49
49
|
extensions: []
|
50
50
|
|
51
51
|
extra_rdoc_files:
|
@@ -61,6 +61,7 @@ files:
|
|
61
61
|
- benchs/params.rb
|
62
62
|
- benchs/parse_vs_push.rb
|
63
63
|
- benchs/stripping.rb
|
64
|
+
- bin/fog
|
64
65
|
- fog.gemspec
|
65
66
|
- lib/fog.rb
|
66
67
|
- lib/fog/aws.rb
|