herokuise 0.5

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.
Files changed (7) hide show
  1. data/Manifest +5 -0
  2. data/README +16 -0
  3. data/Rakefile +12 -0
  4. data/bin/herokuise +81 -0
  5. data/herokise.gemspec +37 -0
  6. data/herokuise.gemspec +38 -0
  7. metadata +105 -0
data/Manifest ADDED
@@ -0,0 +1,5 @@
1
+ Manifest
2
+ README
3
+ Rakefile
4
+ bin/herokuise
5
+ herokise.gemspec
data/README ADDED
@@ -0,0 +1,16 @@
1
+ People be wantin my warez
2
+ askin for sites
3
+ they be freakin
4
+ i be givin
5
+
6
+ herokuise lets me make shit
7
+ fast
8
+ sing with sinatra
9
+ create a github song
10
+ in the chord heroku
11
+ gangsta knows its fast
12
+
13
+
14
+ e.g.
15
+ (soon) sudo gem install herokuise
16
+ herokuise downydowns
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'echoe'
4
+
5
+ Echoe.new('herokuise', '0.5') do |p|
6
+ p.description = "automate getting a site on heroku and git"
7
+ p.url = "http://github.com/orta/herokuise"
8
+ p.author = "orta therox"
9
+ p.email = "orta.therox@gmail.com"
10
+ p.ignore_pattern = ["tmp/*", "script/*", "ortatest"]
11
+ p.development_dependencies = ["github", "heroku"]
12
+ end
data/bin/herokuise ADDED
@@ -0,0 +1,81 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ appname = ARGV[0]
4
+
5
+ # later add domains
6
+ #domain_name = ARGV[1]
7
+
8
+ if !appname
9
+ appname = "ortatest"
10
+ end
11
+
12
+ github_user = `git config --global github.user`
13
+ if github_user == ""
14
+ puts "You need to set up your github gem username/password, type in"
15
+ puts " -> github config"
16
+ Process.exit
17
+ end
18
+
19
+ #kill the old folder if it exists
20
+ if File.exists? appname
21
+ `rm -r #{appname}`
22
+ end
23
+
24
+ puts "Creating #{appname}"
25
+
26
+ puts "Creating Github repo"
27
+
28
+ #this makes the appname folder for us
29
+ `github create #{appname}`
30
+ #`mkdir #{appname}`
31
+
32
+ puts "Making folders"
33
+
34
+ `mkdir #{appname}/public`
35
+
36
+ puts "Making Files"
37
+
38
+ `echo "sinatra" > #{appname}/.gems`
39
+
40
+ `echo "require 'app'
41
+ run Sinatra::Application" > #{appname}/config.ru`
42
+
43
+ `echo "require 'rubygems'
44
+ require 'sinatra'
45
+
46
+ get '/' do
47
+ redirect '/index.html'
48
+ end" > #{appname}/app.rb`
49
+
50
+ puts "Pulling down Paul Irish's HTML5 Boilerplate code"
51
+
52
+ # let's work with a good start.
53
+ `git clone http://github.com/paulirish/html5-boilerplate.git #{appname}/public`
54
+
55
+ # and not get any git issues
56
+ `rm -rf #{appname}/public/.git`
57
+
58
+
59
+ #switch to the new app directory
60
+ Dir.chdir( appname )
61
+
62
+
63
+ puts "Commiting to Github"
64
+
65
+ `git add .`
66
+ `git add .gems`
67
+
68
+ `git commit -m "initial import from orta-herokuize"`
69
+
70
+ puts "Pushing to Github"
71
+
72
+ `git push`
73
+
74
+ puts "Creating heroku repo"
75
+
76
+ `heroku create #{appname}`
77
+
78
+ puts "Pushing to Heroku"
79
+
80
+ `git push heroku master`
81
+ `heroku open`
data/herokise.gemspec ADDED
@@ -0,0 +1,37 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{herokise}
5
+ s.version = "0.5"
6
+
7
+ s.default_executable
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
9
+ s.authors = ["orta therox"]
10
+ s.date = %q{2010-09-03}
11
+ s.description = %q{automate getting a site on heroku and git}
12
+ s.email = %q{orta.therox@gmail.com}
13
+ s.files = ["Rakefile", "herokise.rb", "Manifest", "herokise.gemspec"]
14
+ s.homepage = %q{http://github.com/orta/herokuise}
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Herokise"]
16
+ s.require_paths = ["lib"]
17
+ s.rubyforge_project = %q{herokise}
18
+ s.rubygems_version = %q{1.3.7}
19
+ s.summary = %q{automate getting a site on heroku and git}
20
+ s.executables = "herokise"
21
+
22
+ if s.respond_to? :specification_version then
23
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
+ s.specification_version = 3
25
+
26
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
+ s.add_development_dependency(%q<github>, [">= 0"])
28
+ s.add_development_dependency(%q<heroku>, [">= 0"])
29
+ else
30
+ s.add_dependency(%q<github>, [">= 0"])
31
+ s.add_dependency(%q<heroku>, [">= 0"])
32
+ end
33
+ else
34
+ s.add_dependency(%q<github>, [">= 0"])
35
+ s.add_dependency(%q<heroku>, [">= 0"])
36
+ end
37
+ end
data/herokuise.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{herokuise}
5
+ s.version = "0.5"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["orta therox"]
9
+ s.date = %q{2010-09-04}
10
+ s.default_executable = %q{herokuise}
11
+ s.description = %q{automate getting a site on heroku and git}
12
+ s.email = %q{orta.therox@gmail.com}
13
+ s.executables = ["herokuise"]
14
+ s.extra_rdoc_files = ["README", "bin/herokuise"]
15
+ s.files = ["Manifest", "README", "Rakefile", "bin/herokuise", "herokise.gemspec", "herokuise.gemspec"]
16
+ s.homepage = %q{http://github.com/orta/herokuise}
17
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Herokuise", "--main", "README"]
18
+ s.require_paths = ["lib"]
19
+ s.rubyforge_project = %q{herokuise}
20
+ s.rubygems_version = %q{1.3.7}
21
+ s.summary = %q{automate getting a site on heroku and git}
22
+
23
+ if s.respond_to? :specification_version then
24
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
25
+ s.specification_version = 3
26
+
27
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28
+ s.add_development_dependency(%q<github>, [">= 0"])
29
+ s.add_development_dependency(%q<heroku>, [">= 0"])
30
+ else
31
+ s.add_dependency(%q<github>, [">= 0"])
32
+ s.add_dependency(%q<heroku>, [">= 0"])
33
+ end
34
+ else
35
+ s.add_dependency(%q<github>, [">= 0"])
36
+ s.add_dependency(%q<heroku>, [">= 0"])
37
+ end
38
+ end
metadata ADDED
@@ -0,0 +1,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: herokuise
3
+ version: !ruby/object:Gem::Version
4
+ hash: 1
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 5
9
+ version: "0.5"
10
+ platform: ruby
11
+ authors:
12
+ - orta therox
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-09-04 00:00:00 +01:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: github
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :development
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: heroku
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ type: :development
47
+ version_requirements: *id002
48
+ description: automate getting a site on heroku and git
49
+ email: orta.therox@gmail.com
50
+ executables:
51
+ - herokuise
52
+ extensions: []
53
+
54
+ extra_rdoc_files:
55
+ - README
56
+ - bin/herokuise
57
+ files:
58
+ - Manifest
59
+ - README
60
+ - Rakefile
61
+ - bin/herokuise
62
+ - herokise.gemspec
63
+ - herokuise.gemspec
64
+ has_rdoc: true
65
+ homepage: http://github.com/orta/herokuise
66
+ licenses: []
67
+
68
+ post_install_message:
69
+ rdoc_options:
70
+ - --line-numbers
71
+ - --inline-source
72
+ - --title
73
+ - Herokuise
74
+ - --main
75
+ - README
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ hash: 3
84
+ segments:
85
+ - 0
86
+ version: "0"
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ hash: 11
93
+ segments:
94
+ - 1
95
+ - 2
96
+ version: "1.2"
97
+ requirements: []
98
+
99
+ rubyforge_project: herokuise
100
+ rubygems_version: 1.3.7
101
+ signing_key:
102
+ specification_version: 3
103
+ summary: automate getting a site on heroku and git
104
+ test_files: []
105
+