shelly 0.4.39 → 0.4.40

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5d9e5112799516f4300810c0c9d4bc63a755a18
4
- data.tar.gz: ef02f4bd1ef58a34a5c72a566e22d99a685938dc
3
+ metadata.gz: 84c1d64a86a017e242fc6be31608fb2dabbb010c
4
+ data.tar.gz: e6802beb39c881e5f473aff3e92d7848f96b62d9
5
5
  SHA512:
6
- metadata.gz: 3eaac18b74f4977637ff4d26d0d019ba4f3288a469caaa819fde9b90190c850198ec184ca0e4bf67c25d9bb7bc65ca105fd4e9c4e446bcd72cd5bc22c0f953de
7
- data.tar.gz: 8fa35d39646836f2405484650bbba28b26b8f836349d7ff9e0e68e5c5b58b12a7cc4e3bab8e0c1cfe64554f6306f0e900f43efca319319ef6a2f803d63e43d6a
6
+ metadata.gz: 9ae10bb18d94e0e3a39b0f0156fdf98ac71dd9eb987bba1786f0f53569ca8b5e4ff2649e2bb79e07185f755f8f1d1e9c21236c1a2e8b4074c62beb46fad50c1b
7
+ data.tar.gz: 1135c9a246017c14933a42035d1ae7eafe21a9742236dedd4300ffd5a16e4f7f9ab0481c651d458f49210f0b48d05b4762fc03e4bea7c5fa6208b7100b429212
@@ -1,3 +1,9 @@
1
+ ## 0.4.40 / 2014-12-4
2
+
3
+ * [feature] MySQL support
4
+ * [bugfix] Added dependency on childprocess' version
5
+ * [bugfix] Added UUID for show action in message given by `shelly endpoint help`
6
+
1
7
  ## 0.4.39 / 2014-11-17
2
8
 
3
9
  * [improvement] API changed to support multiple certificates and IP addresses,
@@ -8,7 +8,7 @@ module Shelly
8
8
  class App < Model
9
9
  include ::Shellwords
10
10
 
11
- DATABASE_KINDS = %w(postgresql mongodb redis)
11
+ DATABASE_KINDS = %w(postgresql mysql mongodb redis)
12
12
  DATABASE_CHOICES = DATABASE_KINDS + %w(none)
13
13
  SERVER_SIZES = %w(small large)
14
14
 
@@ -70,7 +70,8 @@ module Shelly
70
70
  app = multiple_clouds(options[:cloud], "backup create [DB_KIND]")
71
71
  cloudfile = Cloudfile.new
72
72
  unless kind || cloudfile.present?
73
- say_error "Cloudfile must be present in current working directory or specify database kind with:", :with_exit => false
73
+ say_error "Cloudfile must be present in current working directory " \
74
+ "or specify database kind with:", :with_exit => false
74
75
  say_error "`shelly backup create DB_KIND`"
75
76
  end
76
77
  app.request_backup(kind || app.backup_databases)
@@ -87,7 +88,8 @@ module Shelly
87
88
  def restore(filename)
88
89
  app = multiple_clouds(options[:cloud], "backup restore FILENAME")
89
90
  backup = app.database_backup(filename)
90
- say "You are about to restore #{backup.kind} database for cloud #{backup.code_name} to state from #{backup.filename}"
91
+ say "You are about to restore #{backup.kind} database for cloud" \
92
+ " #{backup.code_name} to state from #{backup.filename}"
91
93
  say_new_line
92
94
  ask_to_restore_database
93
95
  app.restore_backup(filename)
@@ -114,8 +116,9 @@ module Shelly
114
116
  unless ::File.exist?(filename)
115
117
  say_error "File #{filename} doesn't exist"
116
118
  end
117
- unless ['postgresql', 'mongodb'].include?(kind)
118
- say_error "Kind is invalid. You can import backup of: postgresql, mongodb"
119
+ unless ['postgresql', 'mysql', 'mongodb'].include?(kind)
120
+ say_error "Kind is invalid. You can import backup of: postgresql, " \
121
+ "mysql, mongodb"
119
122
  end
120
123
  if options[:reset]
121
124
  say_warning "You are about to reset database #{kind} for cloud #{app}"
@@ -124,7 +127,8 @@ module Shelly
124
127
  say_new_line
125
128
  yes?(question) ? app.reset_database(kind) : say_error("Canceled")
126
129
  else
127
- say_warning "You are about to import #{kind} database for cloud #{app} to state from file #{filename}"
130
+ say_warning "You are about to import #{kind} database for cloud " \
131
+ "#{app} to state from file #{filename}"
128
132
  question = "I want to import the database from dump (yes/no):"
129
133
  say_new_line
130
134
  say_error "Canceled" unless yes?(question)
@@ -40,10 +40,9 @@ module Shelly
40
40
  end
41
41
  end
42
42
 
43
- desc "show", "Show detail information about HTTP endpoint"
43
+ desc "show UUID", "Show detail information about HTTP endpoint"
44
44
  def show(uuid)
45
45
  app = multiple_clouds(options[:cloud], "endpoint show UUID")
46
-
47
46
  endpoint = app.endpoint(uuid)
48
47
 
49
48
  say "UUID: #{endpoint['uuid']}"
@@ -1,3 +1,3 @@
1
1
  module Shelly
2
- VERSION = "0.4.39"
2
+ VERSION = "0.4.40"
3
3
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
30
30
  s.add_runtime_dependency "ruby-progressbar"
31
31
  s.add_runtime_dependency "launchy"
32
32
  s.add_runtime_dependency "netrc"
33
- s.add_runtime_dependency "childprocess"
33
+ s.add_runtime_dependency "childprocess", "~> 0.5.5"
34
34
 
35
35
  s.files = `git ls-files`.split("\n")
36
36
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -401,7 +401,7 @@ More info at http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository\e[0m
401
401
  it "should use database provided by user (separated by comma or space)" do
402
402
  $stdout.should_receive(:print).
403
403
  with("Which databases do you want to use " \
404
- "postgresql, mongodb, redis, none (postgresql - default): ")
404
+ "postgresql, mysql, mongodb, redis, none (postgresql - default): ")
405
405
  @app.should_receive(:databases=).with(["postgresql", "mongodb", "redis"])
406
406
  fake_stdin(["", "postgresql ,mongodb redis"]) do
407
407
  invoke(@main, :add)
@@ -411,10 +411,10 @@ More info at http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository\e[0m
411
411
  it "should ask again for databases if unsupported kind typed" do
412
412
  $stdout.should_receive(:print).
413
413
  with("Which databases do you want to use " \
414
- "postgresql, mongodb, redis, none (postgresql - default): ")
414
+ "postgresql, mysql, mongodb, redis, none (postgresql - default): ")
415
415
  $stdout.should_receive(:print).
416
416
  with("Unknown database kind. Supported are: " \
417
- "postgresql, mongodb, redis, none: ")
417
+ "postgresql, mysql, mongodb, redis, none: ")
418
418
  fake_stdin(["", "postgresql,doesnt-exist", "none"]) do
419
419
  invoke(@main, :add)
420
420
  end
@@ -121,6 +121,7 @@ foo-staging:
121
121
  databases:
122
122
  - postgresql
123
123
  - mongodb
124
+ # - mysql
124
125
  # - redis
125
126
  config
126
127
 
@@ -152,6 +153,7 @@ foo-staging:
152
153
  databases:
153
154
  - postgresql
154
155
  - mongodb
156
+ # - mysql
155
157
  # - redis
156
158
  config
157
159
  @cloudfile.generate.should == expected
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shelly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.39
4
+ version: 0.4.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shelly Cloud team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-16 00:00:00.000000000 Z
11
+ date: 2014-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -224,16 +224,16 @@ dependencies:
224
224
  name: childprocess
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - ">="
227
+ - - "~>"
228
228
  - !ruby/object:Gem::Version
229
- version: '0'
229
+ version: 0.5.5
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - ">="
234
+ - - "~>"
235
235
  - !ruby/object:Gem::Version
236
- version: '0'
236
+ version: 0.5.5
237
237
  description: Tool for managing applications and clouds at shellycloud.com
238
238
  email:
239
239
  - devs@shellycloud.com
@@ -353,7 +353,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
353
353
  version: '0'
354
354
  requirements: []
355
355
  rubyforge_project: shelly
356
- rubygems_version: 2.2.2
356
+ rubygems_version: 2.4.3
357
357
  signing_key:
358
358
  specification_version: 4
359
359
  summary: Shelly Cloud command line tool