sfb_scripts 1.0.0 → 1.1.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
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34eeb3943447a2665817761596d5efe3ba5098d1
|
4
|
+
data.tar.gz: c3ef9ee6c141a46c3bde5574ed31df2a7535f769
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cb395d46b472bb604c51edde3ac0349700d85e18bef67092c609a9bc8467907dec1ea81be584043b54e2ab96888bc36cc720d5b7d7505cb6f98386608b06323
|
7
|
+
data.tar.gz: 3d47e212846d67f2f3dbf3c7b8975387498172e6ee0fae82f001e2f27b4b632925432bc5aae20e866666a2829c86dae271df26882d29a0225ae4acb1092015c0
|
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 :
|
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'."
|
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[:action]
|
25
|
+
Upper.arbitrary_action!(options[:action], options)
|
26
26
|
else
|
27
27
|
Upper.rebase_on_master!(options)
|
28
28
|
end
|