heroker 1.0.2

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dfa11827fccd0bbb0b719e3027e0bd3e754f9dc7
4
+ data.tar.gz: 0fbb836f495788df96986fe41a04181a9a0d1f99
5
+ SHA512:
6
+ metadata.gz: a66c7fc7a5caa175dbbac6dd290517d399f9498c23cc04e2b0e87f45eb2afdc4788bfbb2cc0ef612c3ff432d930b4a9b8e22d2e6b72beac1d9d142a39c31a3ab
7
+ data.tar.gz: 74c5fcfb23a56aabb2602d95565340c8b5737cebbbd901718f6bc0deb4edaeb6bf701b23e0d54cc627b3edcc3bd33c80eee748591a7557c05196c5b1fa74146d
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in heroker.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Leo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,15 @@
1
+ # Heroker
2
+
3
+ This is only an example on how to manage your envs.
4
+
5
+ These bash wrappers are nothing more but empty binstubs for heroku environment instances management.
6
+ Furthermore, list is predefined - this makes it of little use.
7
+
8
+ ## Installation
9
+
10
+ $ gem install heroker
11
+
12
+ ## Usage
13
+
14
+ heroku git:remote -a .. -r prod
15
+ hprod config
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "heroker"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/exe/hct ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ system "heroku #{ARGV.map{|e| '"' + e + '"'}.join(' ')} -r hct"
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ system "heroku #{ARGV.map{|e| '"' + e + '"'}.join(' ')} -r dev"
data/exe/hdv ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ system "heroku #{ARGV.map{|e| '"' + e + '"'}.join(' ')} -r dv"
data/exe/he1 ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ system "heroku #{ARGV.map{|e| '"' + e + '"'}.join(' ')} -r e1"
data/exe/het ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ system "heroku #{ARGV.map{|e| '"' + e + '"'}.join(' ')} -r et"
data/exe/hpp ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ system "heroku #{ARGV.map{|e| '"' + e + '"'}.join(' ')} -r pp"
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ system "heroku #{ARGV.map{|e| '"' + e + '"'}.join(' ')} -r prod"
data/exe/hqa ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ system "heroku #{ARGV.map{|e| '"' + e + '"'}.join(' ')} -r qa"
data/exe/hs3 ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ system "heroku #{ARGV.map{|e| '"' + e + '"'}.join(' ')} -r s3"
data/exe/hs4 ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ system "heroku #{ARGV.map{|e| '"' + e + '"'}.join(' ')} -r s4"
data/exe/hst ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ system "heroku #{ARGV.map{|e| '"' + e + '"'}.join(' ')} -r st"
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ for i in $(heroku apps | tail -n +2 | cut -f 1 -d ' ' | xargs)
3
+ do
4
+ echo $i
5
+ heroku "$@" -a $i
6
+ done
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ for i in $(heroku apps | grep "\-pp-" | tail -n +2 | cut -f 1 -d ' ' | xargs)
3
+ do
4
+ echo $i
5
+ heroku "$@" -a $i
6
+ done
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ for i in $(heroku apps | grep "\-production-" | tail -n +2 | cut -f 1 -d ' ' | xargs)
3
+ do
4
+ echo $i
5
+ heroku "$@" -a $i
6
+ done
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ for i in $(heroku apps | grep "\-s3-" | tail -n +2 | cut -f 1 -d ' ' | xargs)
3
+ do
4
+ echo $i
5
+ heroku "$@" -a $i
6
+ done
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ for i in $(heroku apps | grep "\-s4-" | tail -n +2 | cut -f 1 -d ' ' | xargs)
3
+ do
4
+ echo $i
5
+ heroku "$@" -a $i
6
+ done
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'heroker/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "heroker"
8
+ spec.version = Heroker::VERSION
9
+ spec.authors = ["Leo"]
10
+ spec.email = ["leonid.inbox@gmail.com"]
11
+
12
+ spec.summary = %q{hprod config; hpp config; manyprod config}
13
+ spec.description = %q{hprod config; hpp config; manyprod config}
14
+ spec.homepage = "https://github.com/altV/heroker"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ # end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.9"
31
+ spec.add_development_dependency "rake", "~> 10.0"
32
+ end
@@ -0,0 +1,5 @@
1
+ require "heroker/version"
2
+
3
+ module Heroker
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,3 @@
1
+ module Heroker
2
+ VERSION = "1.0.2"
3
+ end
metadata ADDED
@@ -0,0 +1,115 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: heroker
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Leo
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: hprod config; hpp config; manyprod config
42
+ email:
43
+ - leonid.inbox@gmail.com
44
+ executables:
45
+ - hct
46
+ - hdev
47
+ - hdv
48
+ - he1
49
+ - het
50
+ - hpp
51
+ - hprod
52
+ - hqa
53
+ - hs3
54
+ - hs4
55
+ - hst
56
+ - manydo
57
+ - manypp
58
+ - manyprod
59
+ - manys3
60
+ - manys4
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".gitignore"
65
+ - Gemfile
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - bin/console
70
+ - bin/setup
71
+ - exe/hct
72
+ - exe/hdev
73
+ - exe/hdv
74
+ - exe/he1
75
+ - exe/het
76
+ - exe/hpp
77
+ - exe/hprod
78
+ - exe/hqa
79
+ - exe/hs3
80
+ - exe/hs4
81
+ - exe/hst
82
+ - exe/manydo
83
+ - exe/manypp
84
+ - exe/manyprod
85
+ - exe/manys3
86
+ - exe/manys4
87
+ - heroker.gemspec
88
+ - lib/heroker.rb
89
+ - lib/heroker/version.rb
90
+ homepage: https://github.com/altV/heroker
91
+ licenses:
92
+ - MIT
93
+ metadata: {}
94
+ post_install_message:
95
+ rdoc_options: []
96
+ require_paths:
97
+ - lib
98
+ required_ruby_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ requirements: []
109
+ rubyforge_project:
110
+ rubygems_version: 2.2.2
111
+ signing_key:
112
+ specification_version: 4
113
+ summary: hprod config; hpp config; manyprod config
114
+ test_files: []
115
+ has_rdoc: