acquia_toolbelt 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +6 -5
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/lib/acquia_toolbelt/cli/api.rb +33 -28
- data/lib/acquia_toolbelt/cli/auth.rb +8 -8
- data/lib/acquia_toolbelt/cli/database.rb +43 -43
- data/lib/acquia_toolbelt/cli/deploy.rb +4 -4
- data/lib/acquia_toolbelt/cli/domain.rb +24 -24
- data/lib/acquia_toolbelt/cli/environment.rb +16 -15
- data/lib/acquia_toolbelt/cli/file.rb +6 -6
- data/lib/acquia_toolbelt/cli/server.rb +25 -24
- data/lib/acquia_toolbelt/cli/site.rb +12 -7
- data/lib/acquia_toolbelt/cli/ssh.rb +22 -18
- data/lib/acquia_toolbelt/cli/svn.rb +15 -15
- data/lib/acquia_toolbelt/cli/task.rb +12 -14
- data/lib/acquia_toolbelt/cli/ui.rb +2 -2
- data/lib/acquia_toolbelt/cli.rb +49 -45
- data/lib/acquia_toolbelt/thor.rb +7 -7
- data/lib/acquia_toolbelt/version.rb +1 -1
- data/lib/acquia_toolbelt.rb +1 -1
- metadata +3 -3
data/lib/acquia_toolbelt/thor.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
$LOAD_PATH.unshift(File.expand_path('../vendor/thor/lib/', File.dirname(__FILE__)))
|
2
2
|
require 'thor'
|
3
3
|
|
4
4
|
module AcquiaToolbelt
|
@@ -15,7 +15,7 @@ module AcquiaToolbelt
|
|
15
15
|
include UtilityMethods
|
16
16
|
no_tasks do
|
17
17
|
def self.help(shell, subcommand = false)
|
18
|
-
list = printable_commands(true, subcommand).sort!{ |a,b| a[0] <=> b[0] }
|
18
|
+
list = printable_commands(true, subcommand).sort! { |a, b| a[0] <=> b[0] }
|
19
19
|
|
20
20
|
shell.say "Type 'acquia [COMMAND] help' for more details on subcommands or to show example usage."
|
21
21
|
|
@@ -23,7 +23,7 @@ module AcquiaToolbelt
|
|
23
23
|
shell.say "#{@package_name} commands:"
|
24
24
|
else
|
25
25
|
shell.say
|
26
|
-
shell.say
|
26
|
+
shell.say 'Commands:'
|
27
27
|
end
|
28
28
|
|
29
29
|
shell.print_table(list, :indent => 2, :truncate => true)
|
@@ -37,14 +37,14 @@ module AcquiaToolbelt
|
|
37
37
|
next if command.hidden? || next if command.name.include? 'help'
|
38
38
|
item = []
|
39
39
|
item << banner(command, false, subcommand)
|
40
|
-
item << (command.description ? "# #{command.description.gsub(/\s+/m,' ')}" :
|
40
|
+
item << (command.description ? "# #{command.description.gsub(/\s+/m,' ')}" : '') unless command.description.empty?
|
41
41
|
item
|
42
42
|
end.compact
|
43
43
|
end
|
44
44
|
|
45
45
|
# Define a base for the commands.
|
46
46
|
def self.banner_base
|
47
|
-
|
47
|
+
'acquia'
|
48
48
|
end
|
49
49
|
|
50
50
|
def self.banner(task, task_help = false, subcommand = false)
|
@@ -56,7 +56,7 @@ module AcquiaToolbelt
|
|
56
56
|
end
|
57
57
|
|
58
58
|
task = (task_help ? task.formatted_usage(self, false, subcommand) : task.name)
|
59
|
-
banner_base +
|
59
|
+
banner_base + ' ' + [subcommand_banner, task].compact.join(':')
|
60
60
|
end
|
61
61
|
|
62
62
|
def self.handle_no_task_error(task)
|
@@ -92,4 +92,4 @@ module AcquiaToolbelt
|
|
92
92
|
)
|
93
93
|
end
|
94
94
|
end
|
95
|
-
end
|
95
|
+
end
|
data/lib/acquia_toolbelt.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acquia_toolbelt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-08-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -402,7 +402,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
402
402
|
version: '0'
|
403
403
|
requirements: []
|
404
404
|
rubyforge_project:
|
405
|
-
rubygems_version: 1.8.23
|
405
|
+
rubygems_version: 1.8.23.2
|
406
406
|
signing_key:
|
407
407
|
specification_version: 3
|
408
408
|
summary: A CLI tool for interacting with Acquia's hosting services.
|