app_fog 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/README.md +9 -9
- data/app_fog.gemspec +3 -3
- data/lib/app_fog.rb +1 -1
- data/test/test_app_fog.rb +8 -1
- data/test/test_shell_command_wrapper.rb +7 -0
- metadata +5 -4
data/.DS_Store
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
Usage:
|
2
2
|
|
3
|
-
|
4
|
-
username = 'jimmysaville'
|
5
|
-
password = 'nowthennowthen'
|
6
|
-
app_name = 'yewtree'
|
3
|
+
Ensure you have installed the af gem - https://docs.appfog.com/getting-started/af-cli
|
7
4
|
|
8
|
-
|
5
|
+
task :default do
|
6
|
+
your_username = 'your_email'
|
7
|
+
your_password = 'your_super_secret_password'
|
8
|
+
app_name = 'name_of_your_app_fog_app'
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
end
|
10
|
+
appfog = AppFog.new(username: your_username, password: your_password)
|
11
|
+
appfog.update(app_name)
|
12
|
+
appfog.start(app_name)
|
13
|
+
end
|
data/app_fog.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'app_fog'
|
3
|
-
s.version = '1.0.
|
4
|
-
s.date = '2013-06-
|
3
|
+
s.version = '1.0.3'
|
4
|
+
s.date = '2013-06-12'
|
5
5
|
s.summary = "A wrapper for the app fog command line interface."
|
6
|
-
s.description = "Wrapping the app fog CLI into a gem to help you deploy more easily using
|
6
|
+
s.description = "Wrapping the app fog CLI into a gem to help you deploy more easily. Don't forget to install the af CLI using 'gem install af'. You can only update and start at the moment. Tweet @ruby_gem if you want more, or fork the code."
|
7
7
|
s.authors = ["@ruby_gem"]
|
8
8
|
s.email = 'gemma.cameron@gmail.com'
|
9
9
|
s.files = `git ls-files`.split("\n")
|
data/lib/app_fog.rb
CHANGED
data/test/test_app_fog.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'test/unit'
|
2
|
-
require 'Open3'
|
3
2
|
require '../lib/app_fog.rb'
|
4
3
|
|
5
4
|
class TestAppFog < Test::Unit::TestCase
|
@@ -25,5 +24,13 @@ class TestAppFog < Test::Unit::TestCase
|
|
25
24
|
end
|
26
25
|
end
|
27
26
|
|
27
|
+
class AppFogIntegrationTest < Test::Unit::TestCase
|
28
|
+
def test_start
|
29
|
+
appfog = AppFog.new(username: 'username', password: 'password')
|
30
|
+
appfog.update('app-name')
|
31
|
+
appfog.start('app-name')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
28
35
|
|
29
36
|
|
@@ -25,6 +25,13 @@ class TestShellCommandWrapper < Test::Unit::TestCase
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
class ShellCommandWrapperIntegrationTest < Test::Unit::TestCase
|
29
|
+
def test_send_command
|
30
|
+
shell = ShellCommandWrapper.new()
|
31
|
+
shell.perform('af')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
28
35
|
class FakeStdOut
|
29
36
|
def initialize(output)
|
30
37
|
@output = output
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_fog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,10 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description: Wrapping the app fog CLI into a gem to help you deploy more easily
|
15
|
-
|
14
|
+
description: Wrapping the app fog CLI into a gem to help you deploy more easily. Don't
|
15
|
+
forget to install the af CLI using 'gem install af'. You can only update and start
|
16
|
+
at the moment. Tweet @ruby_gem if you want more, or fork the code.
|
16
17
|
email: gemma.cameron@gmail.com
|
17
18
|
executables: []
|
18
19
|
extensions: []
|