noveku 0.7 → 0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4280d910a37bbbe0025a5c1b26ff3e4a909f3466
4
+ data.tar.gz: b03665f5dc3e8d2ffca6f66addd5694afb486e1d
5
+ SHA512:
6
+ metadata.gz: 12cb0b786fefeb307accfbcf4c549f9f7f8c4fcc998d9abcf24c89d674e4e2d9fb85971d9d6b7506680b4286b269305144bd909582076808d1b1def60abe9dc1
7
+ data.tar.gz: 7b935eadde527625276787f979ed62940a121758e9278f5f19f9c4d65b68b860e707777f8c2e3fa6a3a119536a213552cb3a244d5afa46394718303f1f388e24
data/README.md CHANGED
@@ -13,7 +13,7 @@ Ruby 1.9+ only. This gem depends on novelys/gomon. However, the presence of the
13
13
 
14
14
  ## Usage
15
15
 
16
- This gem is developed with Rails 3+ in mind.
16
+ This gem is developed with Rails 3+ in mind.
17
17
 
18
18
  However, it should be suited to any project with a notion of "app environment",
19
19
  with different heroku apps for these environments.
@@ -64,16 +64,15 @@ Exception made of mongodb related commands, they all accept the following option
64
64
  * `--dry-run`: only prints the git command that is going to be executed, without executing it;
65
65
  * `--verbose`: prints the git command that is going to be executed, and then execute it.
66
66
 
67
- ### Heroku
67
+ ### Heroku
68
68
 
69
- Supported commands and their equivalent :
69
+ Supported commands and their equivalent :
70
70
 
71
71
  * `rake ARGS` : `heroku run rake ARGS --remove ENV`
72
72
  * `console`: `heroku run console --remote ENV`
73
73
  * `migrate`: `heroku run rake db:migrate --remote ENV && heroku restart --remote ENV`
74
74
  * `tail`: `heroku logs --tail --remote ENV`
75
75
  * `create APP_NAME ENV [ADDONS...]`: creates `APP_NAME` bound to the remote `heroku-ENV`. Each listed addon will be added right away. If any part of the subcommand fails, the remaining will not be executed.
76
- * `clone APP_NAME NEW_ENV BASE_ENV [ADDONS...]`: creates APP_NAME bound to the remote `heroku-NEW_ENV`, and adds every addon from `BASE_ENV`.
77
76
 
78
77
  ### Git
79
78
 
@@ -105,6 +104,7 @@ Better test coverage. This will be bumped to `1.0.0` once this is done and after
105
104
 
106
105
  ## Changelog
107
106
 
107
+ * `0.8`: Removes `clone` (duplicate of `heroku fork`)
108
108
  * `0.7`: Adds `create` and `clone`.
109
109
  * `0.6`: Adds `deploy` and `push`; assumes heroku remotes are prefixed with `heroku-`; enhanced README; internal refactoring.
110
110
  * `0.5`: Test coverage, check the presence of environment & that it matches a heroku app, that pwd is a heroku app, the presence of mongohq/lab uri.
@@ -1,7 +1,6 @@
1
1
  require 'noveku/addon'
2
2
  require 'noveku/cli/git'
3
3
  require 'noveku/cli/heroku'
4
- require 'noveku/clone'
5
4
  require 'noveku/config'
6
5
  require 'noveku/console'
7
6
  require 'noveku/create'
@@ -29,7 +28,6 @@ module Noveku
29
28
  include Tail
30
29
  # Advanced Features
31
30
  include Addon
32
- include Clone
33
31
  include Create
34
32
  include Deploy
35
33
  include Mongo
@@ -93,17 +91,6 @@ module Noveku
93
91
  raise ArgumentError, '`create` expects an env name: noveku create APPNAME ENV [addons...]' unless @environment
94
92
  end
95
93
 
96
- # Arguments handling for `clone` command
97
- def clone_arguments_handling
98
- @app_name = arguments.shift
99
- @new_environment = arguments.shift
100
- @environment = arguments.shift
101
-
102
- raise ArgumentError, '`clone` expects an app name: noveku clone APPNAME NEW_ENV BASE_ENV' unless @app_name
103
- raise ArgumentError, '`clone` expects a new env name: noveku clone APPNAME NEW_ENV BASE_ENV' unless @new_environment
104
- raise ArgumentError, '`clone` expects a base env name: noveku clone APPNAME NEW_ENV BASE_ENV' unless @environment
105
- end
106
-
107
94
  # Retrieve heroku object setup
108
95
  def get_heroku(*commands)
109
96
  options = (commands.last.is_a?(Hash) && commands.pop) || {}
@@ -1,3 +1,3 @@
1
1
  module Noveku
2
- VERSION = '0.7'
2
+ VERSION = '0.8'
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noveku
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.7'
5
- prerelease:
4
+ version: '0.8'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Novelys
@@ -10,54 +9,48 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-02-22 00:00:00.000000000 Z
12
+ date: 2014-03-03 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: gomon
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: rake
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - ">="
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - ">="
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: rspec
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - ">="
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - ">="
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
56
  description: A set of heroku aliases meant to speed up heroku interaction when dealing
@@ -69,9 +62,9 @@ executables:
69
62
  extensions: []
70
63
  extra_rdoc_files: []
71
64
  files:
72
- - .gitignore
73
- - .rspec
74
- - .travis.yml
65
+ - ".gitignore"
66
+ - ".rspec"
67
+ - ".travis.yml"
75
68
  - Gemfile
76
69
  - Gemfile.lock
77
70
  - README.md
@@ -82,7 +75,6 @@ files:
82
75
  - lib/noveku/cli/base.rb
83
76
  - lib/noveku/cli/git.rb
84
77
  - lib/noveku/cli/heroku.rb
85
- - lib/noveku/clone.rb
86
78
  - lib/noveku/config.rb
87
79
  - lib/noveku/console.rb
88
80
  - lib/noveku/core.rb
@@ -98,7 +90,6 @@ files:
98
90
  - lib/noveku/tail.rb
99
91
  - lib/noveku/version.rb
100
92
  - noveku.gemspec
101
- - spec/clone_spec.rb
102
93
  - spec/config_spec.rb
103
94
  - spec/console_spec.rb
104
95
  - spec/core_spec.rb
@@ -115,26 +106,25 @@ files:
115
106
  - spec/tail_spec.rb
116
107
  homepage: http://github.com/novelys/noveku
117
108
  licenses: []
109
+ metadata: {}
118
110
  post_install_message:
119
111
  rdoc_options: []
120
112
  require_paths:
121
113
  - lib
122
114
  required_ruby_version: !ruby/object:Gem::Requirement
123
- none: false
124
115
  requirements:
125
- - - ! '>='
116
+ - - ">="
126
117
  - !ruby/object:Gem::Version
127
118
  version: '0'
128
119
  required_rubygems_version: !ruby/object:Gem::Requirement
129
- none: false
130
120
  requirements:
131
- - - ! '>='
121
+ - - ">="
132
122
  - !ruby/object:Gem::Version
133
123
  version: 1.3.6
134
124
  requirements: []
135
125
  rubyforge_project: noveku
136
- rubygems_version: 1.8.23
126
+ rubygems_version: 2.2.0
137
127
  signing_key:
138
- specification_version: 3
128
+ specification_version: 4
139
129
  summary: Heroku shorcuts for commonly used commands at novelys
140
130
  test_files: []
@@ -1,23 +0,0 @@
1
- module Noveku
2
- module Clone
3
- # Clone args
4
- def clone_cmd_args
5
- base = ["apps:create #{@app_name}"]
6
-
7
- cleaned_addons_list.each { |addon| base << addon_cmd_str(addon) }
8
-
9
- base
10
- end
11
-
12
- # Clone command
13
- def clone_cmd
14
- # Get the command from base env...
15
- commands = clone_cmd_args
16
-
17
- # Switch to new env and execute
18
- @environment = @new_environment
19
-
20
- execute_heroku *commands
21
- end
22
- end
23
- end
@@ -1,25 +0,0 @@
1
- require 'spec_helper'
2
- require 'noveku/core'
3
-
4
- describe 'Clone' do
5
- let(:app_less) { Noveku::Core.new 'clone' }
6
- let(:new_env_less) { Noveku::Core.new 'clone', 'newapp' }
7
- let(:base_env_less) { Noveku::Core.new 'clone', 'newapp', 'new-env' }
8
- subject { Noveku::Core.new 'clone', 'newapp', 'new-env', 'base-env' }
9
-
10
- it 'should have the app name supplied' do
11
- expect(-> {app_less}).to raise_error(ArgumentError)
12
- end
13
-
14
- it 'should have the new env name supplied' do
15
- expect(-> {new_env_less}).to raise_error(ArgumentError)
16
- end
17
-
18
- it 'should have the base env name supplied' do
19
- expect(-> {base_env_less}).to raise_error(ArgumentError)
20
- end
21
-
22
- it 'should be environmentless' do
23
- expect(subject.send(:environmentless_command?)).to be_true
24
- end
25
- end