app_fog 1.0.2 → 1.0.3

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/.DS_Store CHANGED
Binary file
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  Usage:
2
2
 
3
- task :default do
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
- credentials = Credentials.new(username, password)
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
- appfog = AppFog.new(credentials)
11
- appfog.update(app-name)
12
- appfog.start(app-name)
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.2'
4
- s.date = '2013-06-07'
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 your rake script. Fixed issues with first version."
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
@@ -1,5 +1,5 @@
1
1
  require 'rubygems'
2
- require 'open3'
2
+ require 'bundler'
3
3
  require 'app_fog/shell_command_wrapper.rb'
4
4
 
5
5
  class AppFog
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.2
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-07 00:00:00.000000000 Z
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 using
15
- your rake script. Fixed issues with first version.
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: []