Skip to content

Commit f17260a

Browse files
authored
Merge pull request #305 from DeployGate/work/support_disable_notify_and_message_options_in_add_devices
Support disable_notify and message options in add-devices command
2 parents 9f92fb0 + 21cd279 commit f17260a

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

config/locales/en.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ en:
2121
xcodeproj: 'The path to the target Xcode project file (iOS app only)'
2222
add_devices:
2323
description: 'Register devices to your Apple Developer account and refresh your provisioning profile. (iOS only) By default, it automatically finds new devices added to your application on DeployGate and ask you which device to register. You can also specify which device to register via command line options.'
24-
user: 'Owner user or organization name'
2524
udid: 'UDID to be registered'
2625
device_name: 'Device name to be registered'
27-
distribution_key: 'If you also want to update distribution page, set the last part of the URL of the page'
28-
xcodeproj: 'The path to the target Xcode project file (iOS app only)'
2926
server:
3027
description: 'Start the add-devices server. When added new device automatically run add-devices command.'
3128
connecting: 'Connecting...'

lib/deploygate/command_builder.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,15 @@ def run
8686
command ADD_DEVICES do |c|
8787
c.syntax = 'dg add-devices'
8888
c.description = I18n.t('command_builder.add_devices.description')
89-
c.option '--user STRING', String, I18n.t('command_builder.add_devices.user')
89+
c.option '--message STRING', String, I18n.t('command_builder.deploy.message')
90+
c.option '--user STRING', String, I18n.t('command_builder.deploy.user')
9091
c.option '--udid STRING', String, I18n.t('command_builder.add_devices.udid')
9192
c.option '--device-name STRING', String, I18n.t('command_builder.add_devices.device_name')
92-
c.option '--distribution-key STRING', String, I18n.t('command_builder.add_devices.distribution_key')
93+
c.option '--distribution-key STRING', String, I18n.t('command_builder.deploy.distribution_key')
9394
c.option '--configuration STRING', String, I18n.t('command_builder.deploy.configuration')
9495
c.option '--server', I18n.t('command_builder.add_devices.server.description')
95-
c.option '--xcodeproj STRING', I18n.t('command_builder.add_devices.xcodeproj')
96+
c.option '--disable_notify', I18n.t('command_builder.deploy.disable_notify')
97+
c.option '--xcodeproj STRING', I18n.t('command_builder.deploy.xcodeproj')
9698
c.action do |args, options|
9799
options.default :user => nil, :server => false, :command => 'add_devices'
98100
begin

0 commit comments

Comments
 (0)