app_up 1.0.0 → 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.
- checksums.yaml +4 -4
- data/bin/app_up +7 -6
- data/bin/git_up +1 -1
- data/lib/app_up/hooks/rails_up.rb +5 -0
- data/lib/app_up/version.rb +1 -1
- 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: 3879a0f548032f6b137384743cf95242261b9eb1
|
4
|
+
data.tar.gz: 890221adbedb6287fad9d85f517c5504db9a1038
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d93e2e6c905d5a6305c2845d24bcb9c665409ba6de471e26da64555ad34753762dabd854ab1cc895c31193e7429a19eaf9f6034e099bb5c8949f05186bffb474
|
7
|
+
data.tar.gz: 49e42c423504c90e3e533f7000be8ea3849caab440d7d570fe184a024d6a595700eac1bd82ed227c84a553ed319989ab471715be7d4c95c3fd4cd37ee2efbe64
|
data/bin/app_up
CHANGED
@@ -24,14 +24,15 @@ class AppUpCLI < Thor
|
|
24
24
|
verbose: options[:verbose],
|
25
25
|
)
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
fixed_options = options.dup
|
28
|
+
if !fixed_options[:diff]
|
29
|
+
fixed_options[:all] = true
|
30
|
+
elsif fixed_options[:diff].size == 1
|
31
|
+
fixed_options[:diff] << "HEAD"
|
31
32
|
end
|
32
33
|
|
33
|
-
files = AppUp::Repo.new(shell,
|
34
|
-
AppUp::Hooks::Runner.new(shell, files,
|
34
|
+
files = AppUp::Repo.new(shell, fixed_options).files
|
35
|
+
AppUp::Hooks::Runner.new(shell, files, fixed_options).run
|
35
36
|
end
|
36
37
|
|
37
38
|
default_task :run_hooks
|
data/bin/git_up
CHANGED
@@ -43,6 +43,11 @@ module AppUp
|
|
43
43
|
# So we group the commands by their root folder, and
|
44
44
|
# bundle first.
|
45
45
|
def enqueue_commands
|
46
|
+
if @commands.empty?
|
47
|
+
shell.notify("Nothing to do")
|
48
|
+
return
|
49
|
+
end
|
50
|
+
|
46
51
|
command_count = @commands.values.flatten.size.to_s
|
47
52
|
i = 1
|
48
53
|
@commands.each do |dir, actions|
|
data/lib/app_up/version.rb
CHANGED