mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
commit
b0c88782f5
5 changed files with 7 additions and 7 deletions
|
@ -7,6 +7,7 @@ Reverse Chronological Order:
|
||||||
https://github.com/capistrano/capistrano/compare/v3.2.0...HEAD
|
https://github.com/capistrano/capistrano/compare/v3.2.0...HEAD
|
||||||
|
|
||||||
* Minor changes:
|
* Minor changes:
|
||||||
|
* Changed asking question to more standard format (like common unix commandline tools) (@sponomarev)
|
||||||
* Fixed typos in the README. (@sponomarev)
|
* Fixed typos in the README. (@sponomarev)
|
||||||
* Added `keys` method to Configuration to allow introspection of configuration options. (@juanibiapina)
|
* Added `keys` method to Configuration to allow introspection of configuration options. (@juanibiapina)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ module Capistrano
|
||||||
attr_reader :env, :key, :default
|
attr_reader :env, :key, :default
|
||||||
|
|
||||||
def ask_question
|
def ask_question
|
||||||
$stdout.puts question
|
$stdout.print question
|
||||||
end
|
end
|
||||||
|
|
||||||
def save_response
|
def save_response
|
||||||
|
|
|
@ -3,7 +3,6 @@ require 'i18n'
|
||||||
en = {
|
en = {
|
||||||
starting: 'Starting',
|
starting: 'Starting',
|
||||||
capified: 'Capified',
|
capified: 'Capified',
|
||||||
starting: 'Starting',
|
|
||||||
start: 'Start',
|
start: 'Start',
|
||||||
update: 'Update',
|
update: 'Update',
|
||||||
finalize: 'Finalise',
|
finalize: 'Finalise',
|
||||||
|
@ -11,12 +10,12 @@ en = {
|
||||||
finished: 'Finished',
|
finished: 'Finished',
|
||||||
stage_not_set: 'Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.',
|
stage_not_set: 'Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.',
|
||||||
written_file: 'create %{file}',
|
written_file: 'create %{file}',
|
||||||
question: 'Please enter %{key}: |%{default_value}|',
|
question: 'Please enter %{key} (%{default_value}): ',
|
||||||
keeping_releases: 'Keeping %{keep_releases} of %{releases} deployed releases on %{host}',
|
keeping_releases: 'Keeping %{keep_releases} of %{releases} deployed releases on %{host}',
|
||||||
no_old_releases: 'No old releases (keeping newest %{keep_releases}) on %{host}',
|
no_old_releases: 'No old releases (keeping newest %{keep_releases}) on %{host}',
|
||||||
linked_file_does_not_exist: 'linked file %{file} does not exist on %{host}',
|
linked_file_does_not_exist: 'linked file %{file} does not exist on %{host}',
|
||||||
cannot_rollback: 'There are no older releases to rollback to',
|
cannot_rollback: 'There are no older releases to rollback to',
|
||||||
mirror_exists: "The repository mirror is at %{at}",
|
mirror_exists: 'The repository mirror is at %{at}',
|
||||||
revision_log_message: 'Branch %{branch} (at %{sha}) deployed as release %{release} by %{user}',
|
revision_log_message: 'Branch %{branch} (at %{sha}) deployed as release %{release} by %{user}',
|
||||||
rollback_log_message: '%{user} rolled back to release %{release}',
|
rollback_log_message: '%{user} rolled back to release %{release}',
|
||||||
deploy_failed: 'The deploy has failed with an error: %{ex}',
|
deploy_failed: 'The deploy has failed with an error: %{ex}',
|
||||||
|
|
|
@ -283,7 +283,7 @@ describe Capistrano::DSL do
|
||||||
describe 'asking for a variable' do
|
describe 'asking for a variable' do
|
||||||
before do
|
before do
|
||||||
dsl.ask(:scm, :svn)
|
dsl.ask(:scm, :svn)
|
||||||
$stdout.stubs(:puts)
|
$stdout.stubs(:print)
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'variable is provided' do
|
context 'variable is provided' do
|
||||||
|
|
|
@ -23,7 +23,7 @@ module Capistrano
|
||||||
let(:branch) { 'branch' }
|
let(:branch) { 'branch' }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
$stdout.expects(:puts).with('Please enter branch: |default|')
|
$stdout.expects(:print).with('Please enter branch (default): ')
|
||||||
$stdin.expects(:gets).returns(branch)
|
$stdin.expects(:gets).returns(branch)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ module Capistrano
|
||||||
let(:branch) { default }
|
let(:branch) { default }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
$stdout.expects(:puts).with('Please enter branch: |default|')
|
$stdout.expects(:print).with('Please enter branch (default): ')
|
||||||
$stdin.expects(:gets).returns('')
|
$stdin.expects(:gets).returns('')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue