fog 0.0.88 → 0.0.89
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.
- data/fog.gemspec +2 -2
- data/lib/fog.rb +1 -1
- data/lib/fog/aws/models/s3/directory.rb +2 -1
- data/lib/fog/aws/requests/ec2/modify_image_attributes.rb +2 -2
- data/lib/fog/deprecation.rb +1 -1
- data/lib/fog/local/models/directories.rb +4 -4
- data/lib/fog/local/models/directory.rb +7 -4
- data/lib/fog/local/models/file.rb +1 -1
- data/lib/fog/local/models/files.rb +3 -3
- data/lib/fog/rackspace/models/files/directory.rb +2 -1
- metadata +3 -3
data/fog.gemspec
CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
|
|
7
7
|
## If your rubyforge_project name is different, then edit it and comment out
|
8
8
|
## the sub! line in the Rakefile
|
9
9
|
s.name = 'fog'
|
10
|
-
s.version = '0.0.
|
11
|
-
s.date = '2010-05-
|
10
|
+
s.version = '0.0.89'
|
11
|
+
s.date = '2010-05-04'
|
12
12
|
s.rubyforge_project = 'fog'
|
13
13
|
|
14
14
|
## Make sure your summary is short. The description may be as long
|
data/lib/fog.rb
CHANGED
@@ -19,7 +19,7 @@ module Fog
|
|
19
19
|
'Action' => 'ModifyImageAttribute',
|
20
20
|
'Attribute' => attribute,
|
21
21
|
'ImageId' => image_id,
|
22
|
-
'OperationType' =>
|
22
|
+
'OperationType' => operation_type,
|
23
23
|
:parser => Fog::Parsers::AWS::EC2::Basic.new
|
24
24
|
}.merge!(params))
|
25
25
|
end
|
@@ -28,7 +28,7 @@ module Fog
|
|
28
28
|
|
29
29
|
class Mock
|
30
30
|
|
31
|
-
def modify_image_attributes(image_id,
|
31
|
+
def modify_image_attributes(image_id, attribute, operation_type, options = {})
|
32
32
|
raise MockNotImplemented.new("Contributions welcome!")
|
33
33
|
end
|
34
34
|
|
data/lib/fog/deprecation.rb
CHANGED
@@ -24,14 +24,14 @@ module Fog
|
|
24
24
|
data = Dir.entries(connection.local_root).select do |entry|
|
25
25
|
entry[0...1] != '.' && ::File.directory?(connection.path_to(entry))
|
26
26
|
end.map do |entry|
|
27
|
-
{:
|
27
|
+
{:key => entry}
|
28
28
|
end
|
29
29
|
load(data)
|
30
30
|
end
|
31
31
|
|
32
|
-
def get(
|
33
|
-
if ::File.directory?(connection.path_to(
|
34
|
-
new(:
|
32
|
+
def get(key)
|
33
|
+
if ::File.directory?(connection.path_to(key))
|
34
|
+
new(:key => key)
|
35
35
|
else
|
36
36
|
nil
|
37
37
|
end
|
@@ -5,11 +5,14 @@ module Fog
|
|
5
5
|
module Local
|
6
6
|
|
7
7
|
class Directory < Fog::Model
|
8
|
+
extend Fog::Deprecation
|
9
|
+
deprecate(:name, :key)
|
10
|
+
deprecate(:name=, :key=)
|
8
11
|
|
9
|
-
identity :
|
12
|
+
identity :key
|
10
13
|
|
11
14
|
def destroy
|
12
|
-
requires :
|
15
|
+
requires :key
|
13
16
|
|
14
17
|
if ::File.directory?(path)
|
15
18
|
Dir.rmdir(path)
|
@@ -29,7 +32,7 @@ module Fog
|
|
29
32
|
end
|
30
33
|
|
31
34
|
def save
|
32
|
-
requires :
|
35
|
+
requires :key
|
33
36
|
|
34
37
|
Dir.mkdir(path)
|
35
38
|
true
|
@@ -38,7 +41,7 @@ module Fog
|
|
38
41
|
private
|
39
42
|
|
40
43
|
def path
|
41
|
-
connection.path_to(
|
44
|
+
connection.path_to(key)
|
42
45
|
end
|
43
46
|
|
44
47
|
end
|
@@ -9,8 +9,8 @@ module Fog
|
|
9
9
|
model Fog::Local::File
|
10
10
|
|
11
11
|
def all
|
12
|
-
if directory.collection.get(directory.
|
13
|
-
data = Dir.entries(connection.path_to(directory.
|
12
|
+
if directory.collection.get(directory.key)
|
13
|
+
data = Dir.entries(connection.path_to(directory.key)).select do |key|
|
14
14
|
key[0...1] != '.' && !::File.directory?(connection.path_to(key))
|
15
15
|
end.map do |key|
|
16
16
|
path = file_path(key)
|
@@ -66,7 +66,7 @@ module Fog
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def file_path(key)
|
69
|
-
connection.path_to(::File.join(directory.
|
69
|
+
connection.path_to(::File.join(directory.key, key))
|
70
70
|
end
|
71
71
|
|
72
72
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 89
|
9
|
+
version: 0.0.89
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- geemus (Wesley Beary)
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-04 00:00:00 -07:00
|
18
18
|
default_executable: fog
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|