sfb_scripts 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/app_up +3 -3
- data/bin/git_up +20 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3ad38215f4249ca5652663a96aa9ef60fab5e35
|
4
|
+
data.tar.gz: 6e5446a3f26ec027a7d56500f614231ca42bc319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4467e3a0c8df9978c713fd1e2e3f79be254ffed509986f73a049fbc2f93df27924a460a0f89db81dca7588451fcae644330fb711a1604e967b7f7b75fa8b07e0
|
7
|
+
data.tar.gz: e14fe39d5eac9bf158a1defdc81852eb3e48d893a2eef1c8206eaaf182289f2bb2f9c16a5a0b6564217bfd03695587c60bc7f653c1842ab269b9e25621e85e17
|
data/bin/app_up
CHANGED
@@ -14,15 +14,15 @@ class CLI < Thor
|
|
14
14
|
option :no_git, aliases: ['--no-pull', '--no-rebase'], :type => :boolean, :desc => "Don't update the repo, just bundle and migrate everywhere."
|
15
15
|
option :ignore, type: :array, desc: "Directories matching this pattern will be ignored. Example: 'app_up --ignore engines' will not bundle or migrate in a directory matching the word engines. You can specify multiple patterns: 'app_up --ignore dir1 dir2"
|
16
16
|
option :on_branch, desc: "Rebase the current branch onto it's upstream counterpart. [Example: While on branch (feature_branch), using the --on-branch flag will yield the git command: 'git pull --rebase origin feature_branch'", default: 'master', default: false
|
17
|
-
option :action, desc: "Specify what command to pass to git [Example: app_up --git-action 'pull --rebase origin branch_name']. Defaults to 'pull --rebase origin master'."
|
17
|
+
option :git_action, aliases: ['--action', '-g'], type: :array, desc: "Specify what command to pass to git [Example: app_up --git-action 'pull --rebase origin branch_name']. Defaults to 'pull --rebase origin master'."
|
18
18
|
|
19
19
|
def up
|
20
20
|
if options[:no_git]
|
21
21
|
Upper.no_git(options)
|
22
22
|
elsif options[:on_branch]
|
23
23
|
Upper.rebase_on_branch!(options)
|
24
|
-
elsif options[:
|
25
|
-
Upper.arbitrary_action!(options[:
|
24
|
+
elsif options[:git_action]
|
25
|
+
Upper.arbitrary_action!(options[:git_action].join(' '), options)
|
26
26
|
else
|
27
27
|
Upper.rebase_on_master!(options)
|
28
28
|
end
|
data/bin/git_up
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# This belongs in a bash_profile, but I can't for the
|
4
|
+
# life of me figure out how to quote all of the arguments
|
5
|
+
# :(
|
6
|
+
#
|
7
|
+
# The problem is that: app_up --git-action reset --hard
|
8
|
+
# is misinterpreted by Thor and needs quotes:
|
9
|
+
#
|
10
|
+
# app_up --git-action 'reset --hard'
|
11
|
+
#
|
12
|
+
# putting :
|
13
|
+
#
|
14
|
+
# function git_up()
|
15
|
+
# {
|
16
|
+
# app_up --git-action "'$@'"
|
17
|
+
# }
|
18
|
+
#
|
19
|
+
# just doesn't work. :( :( :(
|
20
|
+
Kernel.exec("app_up --git-action \"#{ARGV.join(' ')}\"")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sfb_scripts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Kinnecom
|
@@ -56,6 +56,7 @@ email:
|
|
56
56
|
executables:
|
57
57
|
- test_runner
|
58
58
|
- app_up
|
59
|
+
- git_up
|
59
60
|
extensions: []
|
60
61
|
extra_rdoc_files: []
|
61
62
|
files:
|
@@ -83,6 +84,7 @@ files:
|
|
83
84
|
- lib/sfb_scripts/upper.rb
|
84
85
|
- bin/test_runner
|
85
86
|
- bin/app_up
|
87
|
+
- bin/git_up
|
86
88
|
homepage: http://github.com/petekinnecom/sfb_scripts/
|
87
89
|
licenses:
|
88
90
|
- MIT
|