herokuise 0.5 → 0.6
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/Manifest +1 -1
- data/{README → README.md} +12 -3
- data/Rakefile +1 -1
- data/bin/herokuise +15 -4
- data/herokise.gemspec +16 -1
- data/herokuise.gemspec +5 -5
- metadata +7 -7
data/Manifest
CHANGED
data/{README → README.md}
RENAMED
@@ -1,3 +1,10 @@
|
|
1
|
+
Herokuise
|
2
|
+
========
|
3
|
+
|
4
|
+
build a website with github and heroku quick
|
5
|
+
--------
|
6
|
+
|
7
|
+
<pre>
|
1
8
|
People be wantin my warez
|
2
9
|
askin for sites
|
3
10
|
they be freakin
|
@@ -8,9 +15,11 @@ fast
|
|
8
15
|
sing with sinatra
|
9
16
|
create a github song
|
10
17
|
in the chord heroku
|
11
|
-
|
12
|
-
|
18
|
+
g' knows its fast
|
19
|
+
</pre>
|
13
20
|
|
14
21
|
e.g.
|
15
|
-
|
22
|
+
--------
|
23
|
+
sudo gem install herokuise
|
24
|
+
|
16
25
|
herokuise downydowns
|
data/Rakefile
CHANGED
data/bin/herokuise
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
+
require 'open-uri'
|
4
|
+
|
3
5
|
appname = ARGV[0]
|
4
6
|
|
5
7
|
# later add domains
|
6
8
|
#domain_name = ARGV[1]
|
7
9
|
|
8
10
|
if !appname
|
9
|
-
appname
|
11
|
+
puts" Usage: herokuise [appname] - this will create a github repo and set up a sinatra app serving static content on heroku"
|
12
|
+
appname = "nellbot"
|
13
|
+
# Process.exit
|
10
14
|
end
|
11
15
|
|
12
16
|
github_user = `git config --global github.user`
|
@@ -16,6 +20,13 @@ if github_user == ""
|
|
16
20
|
Process.exit
|
17
21
|
end
|
18
22
|
|
23
|
+
if open("http://#{appname}.heroku.com/", "User-Agent" => "Ruby/#{RUBY_VERSION}").include? "No such app"
|
24
|
+
puts "Heroku app http://#{appname}.heroku.com already exists"
|
25
|
+
Process.exit
|
26
|
+
end
|
27
|
+
|
28
|
+
Process.exit
|
29
|
+
|
19
30
|
#kill the old folder if it exists
|
20
31
|
if File.exists? appname
|
21
32
|
`rm -r #{appname}`
|
@@ -31,7 +42,7 @@ puts "Creating Github repo"
|
|
31
42
|
|
32
43
|
puts "Making folders"
|
33
44
|
|
34
|
-
|
45
|
+
Dir.mkdir appname + "/public"
|
35
46
|
|
36
47
|
puts "Making Files"
|
37
48
|
|
@@ -55,11 +66,9 @@ puts "Pulling down Paul Irish's HTML5 Boilerplate code"
|
|
55
66
|
# and not get any git issues
|
56
67
|
`rm -rf #{appname}/public/.git`
|
57
68
|
|
58
|
-
|
59
69
|
#switch to the new app directory
|
60
70
|
Dir.chdir( appname )
|
61
71
|
|
62
|
-
|
63
72
|
puts "Commiting to Github"
|
64
73
|
|
65
74
|
`git add .`
|
@@ -78,4 +87,6 @@ puts "Creating heroku repo"
|
|
78
87
|
puts "Pushing to Heroku"
|
79
88
|
|
80
89
|
`git push heroku master`
|
90
|
+
|
91
|
+
|
81
92
|
`heroku open`
|
data/herokise.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{herokise}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.6.1"
|
6
6
|
|
7
7
|
s.default_executable
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
@@ -18,7 +18,22 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.rubygems_version = %q{1.3.7}
|
19
19
|
s.summary = %q{automate getting a site on heroku and git}
|
20
20
|
s.executables = "herokise"
|
21
|
+
s.post_install_message = %q{
|
22
|
+
========================================================================
|
23
|
+
|
21
24
|
|
25
|
+
Awesome beanz!
|
26
|
+
|
27
|
+
To create a new site, find your way to the parent directory and run
|
28
|
+
|
29
|
+
herokuise [name]
|
30
|
+
|
31
|
+
This will create a repo in your github account, and create a heroku
|
32
|
+
app, make sure both of the gems are setup
|
33
|
+
|
34
|
+
|
35
|
+
========================================================================
|
36
|
+
}
|
22
37
|
if s.respond_to? :specification_version then
|
23
38
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
39
|
s.specification_version = 3
|
data/herokuise.gemspec
CHANGED
@@ -2,19 +2,19 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{herokuise}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.6"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["orta therox"]
|
9
|
-
s.date = %q{2010-09-
|
9
|
+
s.date = %q{2010-09-05}
|
10
10
|
s.default_executable = %q{herokuise}
|
11
11
|
s.description = %q{automate getting a site on heroku and git}
|
12
12
|
s.email = %q{orta.therox@gmail.com}
|
13
13
|
s.executables = ["herokuise"]
|
14
|
-
s.extra_rdoc_files = ["README", "bin/herokuise"]
|
15
|
-
s.files = ["Manifest", "README", "Rakefile", "bin/herokuise", "herokise.gemspec", "herokuise.gemspec"]
|
14
|
+
s.extra_rdoc_files = ["README.md", "bin/herokuise"]
|
15
|
+
s.files = ["Manifest", "README.md", "Rakefile", "bin/herokuise", "herokise.gemspec", "herokuise.gemspec"]
|
16
16
|
s.homepage = %q{http://github.com/orta/herokuise}
|
17
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Herokuise", "--main", "README"]
|
17
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Herokuise", "--main", "README.md"]
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
s.rubyforge_project = %q{herokuise}
|
20
20
|
s.rubygems_version = %q{1.3.7}
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: herokuise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: "0.
|
8
|
+
- 6
|
9
|
+
version: "0.6"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- orta therox
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-09-
|
17
|
+
date: 2010-09-05 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -52,11 +52,11 @@ executables:
|
|
52
52
|
extensions: []
|
53
53
|
|
54
54
|
extra_rdoc_files:
|
55
|
-
- README
|
55
|
+
- README.md
|
56
56
|
- bin/herokuise
|
57
57
|
files:
|
58
58
|
- Manifest
|
59
|
-
- README
|
59
|
+
- README.md
|
60
60
|
- Rakefile
|
61
61
|
- bin/herokuise
|
62
62
|
- herokise.gemspec
|
@@ -72,7 +72,7 @@ rdoc_options:
|
|
72
72
|
- --title
|
73
73
|
- Herokuise
|
74
74
|
- --main
|
75
|
-
- README
|
75
|
+
- README.md
|
76
76
|
require_paths:
|
77
77
|
- lib
|
78
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|