renuo-cli 0.0.6 → 0.0.7
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +17 -1
- data/lib/renuo/cli/app/generate_password.rb +7 -0
- data/lib/renuo/cli/app/migrate_to_github.rb +4 -4
- data/lib/renuo/cli/version.rb +1 -1
- data/lib/renuo/cli.rb +11 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db69e51ebf9d72b1d6b25793479e40e4c93af3d5
|
4
|
+
data.tar.gz: f837fd8ee334197c790b45a45877e88e48801fbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 879997b1b32fa4fac716aab2e5bd65bf44a03931203a027eb6cf7c1108f3439f6b5fe852ab59135969d6e6fc7764de1ed30bed0d9b10fb20096bcc6773e920bb
|
7
|
+
data.tar.gz: 8fc2342e35cb2becbd7675396d0316763d9210f321796f7c86104e4eeca17a5c6ab15822dfed4c0fb7ea6097473c481935fa46ad985675958f451a1a45a7103e
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
[](https://travis-ci.org/renuo/renuo-cli)
|
2
2
|
[](https://coveralls.io/github/renuo/renuo-cli?branch=master)
|
3
|
+
[](https://codeclimate.com/github/renuo/renuo-cli)
|
3
4
|
|
4
5
|
# Renuo::Cli
|
5
6
|
|
@@ -23,7 +24,7 @@ Or install it yourself as:
|
|
23
24
|
|
24
25
|
## Usage
|
25
26
|
|
26
|
-
```
|
27
|
+
```sh
|
27
28
|
renuo -h
|
28
29
|
```
|
29
30
|
|
@@ -36,6 +37,21 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
36
37
|
version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,
|
37
38
|
push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
38
39
|
|
40
|
+
## Release
|
41
|
+
|
42
|
+
```sh
|
43
|
+
git flow release start [.....]
|
44
|
+
# adjust version.rb
|
45
|
+
bundle install
|
46
|
+
git commit -av
|
47
|
+
git flow release finish [.....]
|
48
|
+
git push origin develop:develop
|
49
|
+
git push origin master:master
|
50
|
+
git checkout master
|
51
|
+
bundle exec rake release
|
52
|
+
git checkout develop
|
53
|
+
```
|
54
|
+
|
39
55
|
## Contributing
|
40
56
|
|
41
57
|
Bug reports and pull requests are welcome on GitHub at https://github.com/renuo/renuo-cli. This project is intended to
|
@@ -103,9 +103,9 @@ class MigrateToGithub
|
|
103
103
|
`open https://deploy.renuo.ch/deployment_configs`
|
104
104
|
say('Now login to the deployment server, and change the remotes. E.g.')
|
105
105
|
cd = "cd deployments/#{@project_name}"
|
106
|
-
say("#{cd}-master && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd
|
107
|
-
say("#{cd}-develop && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd
|
108
|
-
say("#{cd}-testing && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd
|
106
|
+
say("#{cd}-master && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd ../..")
|
107
|
+
say("#{cd}-develop && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd ../..")
|
108
|
+
say("#{cd}-testing && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd ../..")
|
109
109
|
agree('Ready?')
|
110
110
|
end
|
111
111
|
|
@@ -120,7 +120,7 @@ class MigrateToGithub
|
|
120
120
|
def replace_other_old_links
|
121
121
|
say('Now let\'s replace other old links in the repo!')
|
122
122
|
agree('Ready?')
|
123
|
-
`open https://github.com/renuo/#{@project_name}/search?
|
123
|
+
`open https://github.com/renuo/#{@project_name}/search?q=git.renuo.ch`
|
124
124
|
say('Replace all those links!')
|
125
125
|
agree('Ready?')
|
126
126
|
say('Now let\'s replace other old links in the wiki!')
|
data/lib/renuo/cli/version.rb
CHANGED
data/lib/renuo/cli.rb
CHANGED
@@ -4,6 +4,7 @@ require 'renuo/cli/app/name_display'
|
|
4
4
|
require 'renuo/cli/app/local_storage'
|
5
5
|
require 'renuo/cli/app/migrate_to_github'
|
6
6
|
require 'renuo/cli/app/list_large_git_files'
|
7
|
+
require 'renuo/cli/app/generate_password'
|
7
8
|
|
8
9
|
module Renuo
|
9
10
|
class CLI
|
@@ -56,6 +57,16 @@ module Renuo
|
|
56
57
|
ListLargeGitFiles.new.run
|
57
58
|
end
|
58
59
|
end
|
60
|
+
|
61
|
+
command 'generate-password' do |c|
|
62
|
+
c.syntax = 'renuo generate-password'
|
63
|
+
c.summary = 'Generates a phrase of random 0-9a-zA-Z characters. Choose a substring of it as a new password.'
|
64
|
+
c.description = 'Generates a phrase of random 0-9a-zA-Z characters. Choose a substring of it as a new password.'
|
65
|
+
c.example 'renuo generate-password', 'generates a random password'
|
66
|
+
c.action do
|
67
|
+
GeneratePassword.new.run
|
68
|
+
end
|
69
|
+
end
|
59
70
|
end
|
60
71
|
end
|
61
72
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renuo-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Elmer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|
@@ -163,6 +163,7 @@ files:
|
|
163
163
|
- bin/setup
|
164
164
|
- exe/renuo
|
165
165
|
- lib/renuo/cli.rb
|
166
|
+
- lib/renuo/cli/app/generate_password.rb
|
166
167
|
- lib/renuo/cli/app/list_large_git_files.rb
|
167
168
|
- lib/renuo/cli/app/local_storage.rb
|
168
169
|
- lib/renuo/cli/app/migrate_to_github.rb
|