Skip to content

Commit

Permalink
Merge pull request #127 from engineyard/add_serverside_version_to_client
Browse files Browse the repository at this point in the history
[FBZ-9094] Adds serverside version as argument
  • Loading branch information
mushyy authored Oct 27, 2021
2 parents 09fa2e7 + 2aaed38 commit 54bbf95
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/ey-core/cli/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class Deploy < Subcommand
long: "migrate",
description: "The migration command to run. This option has a 50 character limit.",
argument: "migrate"
option :serverside_version,
short: "S",
long: "serverside_version",
description: "Override the default version of engineyard-serverside. The version must match a released version. Use with care.",
argument: "serverside_version"

option :app,
short: "a",
Expand Down Expand Up @@ -75,6 +80,9 @@ def handle

deploy_options = {verbose: switch_active?(:verbose), cli_args: ARGV}
latest_deploy = nil
if options[:serverside_version]
deploy_options.merge!(serverside_version: option(:serverside_version))
end
if options[:ref]
deploy_options.merge!(ref: option(:ref))
else
Expand Down
1 change: 1 addition & 0 deletions lib/ey-core/models/deployment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Ey::Core::Client::Deployment < Ey::Core::Model
attribute :migrate_command
attribute :ref
attribute :resolved_ref
attribute :serverside_version
attribute :started_at, type: :time
attribute :successful, type: :boolean
attribute :verbose
Expand Down
1 change: 1 addition & 0 deletions lib/ey-core/requests/deploy_environment_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def deploy_environment_application(options={})
"migrate_command" => options["deploy"]["migrate"] ? (options["deploy"]["migrate_command"] || "rake db:migrate") : nil,
"migrate" => options["deploy"]["migrate"] || false,
"resolved_ref" => options["deploy"]["ref"],
"serverside_version" => options["deploy"]["serverside_version"],
"started_at" => Time.now,
"successful" => true
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ey-core/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Ey
module Core
VERSION = "3.6.1"
VERSION = "3.6.2"
end
end

0 comments on commit 54bbf95

Please sign in to comment.