shelly 0.1.26 → 0.1.27
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.
- data/CHANGELOG.md +4 -0
- data/lib/shelly/cli/main.rb +10 -10
- data/lib/shelly/version.rb +1 -1
- data/spec/shelly/cli/main_spec.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/lib/shelly/cli/main.rb
CHANGED
|
@@ -406,25 +406,25 @@ We have been notified about it. We will be adding new resources shortly}
|
|
|
406
406
|
|
|
407
407
|
cloudfile = Cloudfile.new
|
|
408
408
|
if cloudfile.present?
|
|
409
|
-
cloudfile.clouds.each do |
|
|
410
|
-
if
|
|
409
|
+
cloudfile.clouds.each do |app|
|
|
410
|
+
if app.cloud_databases.include?('postgresql')
|
|
411
411
|
print_check(structure.gem?("pg") || structure.gem?("postgres"),
|
|
412
|
-
"Postgresql driver is present for '#{
|
|
413
|
-
"Postgresql driver is missing in the Gemfile for '#{
|
|
412
|
+
"Postgresql driver is present for '#{app}' cloud",
|
|
413
|
+
"Postgresql driver is missing in the Gemfile for '#{app}' cloud,\n we recommend adding 'pg' gem to Gemfile",
|
|
414
414
|
:show_fulfilled => verbose)
|
|
415
415
|
end
|
|
416
416
|
|
|
417
|
-
if
|
|
417
|
+
if app.delayed_job?
|
|
418
418
|
print_check(structure.gem?("delayed_job"),
|
|
419
|
-
"Gem 'delayed_job' is present for '#{
|
|
420
|
-
"Gem 'delayed_job' is missing in the Gemfile for '#{
|
|
419
|
+
"Gem 'delayed_job' is present for '#{app}' cloud",
|
|
420
|
+
"Gem 'delayed_job' is missing in the Gemfile for '#{app}' cloud",
|
|
421
421
|
:show_fulfilled => verbose)
|
|
422
422
|
end
|
|
423
423
|
|
|
424
|
-
if
|
|
424
|
+
if app.whenever?
|
|
425
425
|
print_check(structure.gem?("whenever"),
|
|
426
|
-
"Gem 'whenever' is present for '#{
|
|
427
|
-
"Gem 'whenever' is missing in the Gemfile for '#{
|
|
426
|
+
"Gem 'whenever' is present for '#{app}' cloud",
|
|
427
|
+
"Gem 'whenever' is missing in the Gemfile for '#{app}' cloud",
|
|
428
428
|
:show_fulfilled => verbose)
|
|
429
429
|
end
|
|
430
430
|
end
|
data/lib/shelly/version.rb
CHANGED
|
@@ -1348,7 +1348,7 @@ We have been notified about it. We will be adding new resources shortly")
|
|
|
1348
1348
|
|
|
1349
1349
|
context "cloudfile" do
|
|
1350
1350
|
before do
|
|
1351
|
-
cloud = mock(:code_name => "foo-staging", :
|
|
1351
|
+
cloud = mock(:code_name => "foo-staging", :cloud_databases => ["postgresql"],
|
|
1352
1352
|
:whenever? => true, :delayed_job? => true, :to_s => "foo-staging")
|
|
1353
1353
|
cloudfile = mock(:clouds => [cloud])
|
|
1354
1354
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shelly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.27
|
|
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: 2012-09-
|
|
12
|
+
date: 2012-09-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rspec
|