tango 0.1.2 → 0.1.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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tango (0.1.2)
4
+ tango (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/README.md CHANGED
@@ -26,6 +26,8 @@ Bootstrapping Ubuntu
26
26
  Example Runner
27
27
  --------------
28
28
 
29
+ require 'tango'
30
+
29
31
  class AptInstaller < Tango::Runner
30
32
  def installed?(package)
31
33
  shell("dpkg-query", "--status", package, :echo => false).output !~ /not.installed|deinstall/
@@ -69,7 +71,18 @@ Example Runner
69
71
  Running the Example
70
72
  -------------------
71
73
 
72
- sudo tango example_installer.rb ExampleInstaller.install
74
+ The normal way to do this is to use Rake as a front-end for Tango, so have a Rakefile like this:
75
+
76
+ require 'example_installer'
77
+
78
+ desc "Install MySQL, Git, and bundler."
79
+ task :example_install do
80
+ ExampleInstaller.new.install
81
+ end
82
+
83
+ And then run:
84
+
85
+ rake example_install
73
86
 
74
87
  Useful Helper Methods
75
88
  ---------------------
data/lib/tango/fetch.rb CHANGED
@@ -2,7 +2,7 @@ module Tango
2
2
  module Fetch
3
3
 
4
4
  def fetch(url)
5
- shell("wget", "--progress=bar:force", "--continue", url)
5
+ shell("curl", "-O", "-C", "-", "--progress-bar", url)
6
6
  end
7
7
 
8
8
  end
data/lib/tango/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tango
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tango
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pete Yandell
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-30 00:00:00 Z
18
+ date: 2011-07-07 00:00:00 +10:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: rspec
@@ -34,8 +35,8 @@ dependencies:
34
35
  description: Experiment in deployment tools, taking ideas from babushka and elsewhere.
35
36
  email:
36
37
  - pete@notahat.com
37
- executables:
38
- - tango
38
+ executables: []
39
+
39
40
  extensions: []
40
41
 
41
42
  extra_rdoc_files: []
@@ -48,7 +49,6 @@ files:
48
49
  - LICENSE
49
50
  - README.md
50
51
  - Rakefile
51
- - bin/tango
52
52
  - lib/tango.rb
53
53
  - lib/tango/config_files.rb
54
54
  - lib/tango/contexts.rb
@@ -75,6 +75,7 @@ files:
75
75
  - spec/shell_spec.rb
76
76
  - tango.gemspec
77
77
  - tmp/.gitignore
78
+ has_rdoc: true
78
79
  homepage: ""
79
80
  licenses: []
80
81
 
@@ -104,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
105
  requirements: []
105
106
 
106
107
  rubyforge_project: tango
107
- rubygems_version: 1.8.5
108
+ rubygems_version: 1.6.2
108
109
  signing_key:
109
110
  specification_version: 3
110
111
  summary: Experiment in deployment tools.
data/bin/tango DELETED
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- $LOAD_PATH << File.expand_path(File.dirname(__FILE__) + "/../lib")
4
- require 'tango'
5
-
6
- if ARGV[0].nil?
7
- Tango.print_usage
8
- exit
9
- end
10
-
11
- load "./tango.rb"
12
-
13
- eval ARGV[0]