summaryrefslogtreecommitdiff
path: root/app/models/project_services/teamcity_service.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-02 21:15:44 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-02 21:15:44 -0800
commitcc39bca3fa71930421f1c46844b4d02d5ff93e8b (patch)
treef9a600dee04bca35f0319a64ce23bdff7ea724d9 /app/models/project_services/teamcity_service.rb
parentc427bf08e41342957632289e084604f53e65e353 (diff)
downloadgitlab-ce-cc39bca3fa71930421f1c46844b4d02d5ff93e8b.tar.gz
Rubocop: Style/AlignHash enabled
Diffstat (limited to 'app/models/project_services/teamcity_service.rb')
-rw-r--r--app/models/project_services/teamcity_service.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/app/models/project_services/teamcity_service.rb b/app/models/project_services/teamcity_service.rb
index dca718b5e8c..287f5c0e84e 100644
--- a/app/models/project_services/teamcity_service.rb
+++ b/app/models/project_services/teamcity_service.rb
@@ -17,13 +17,16 @@ class TeamcityService < CiService
prop_accessor :teamcity_url, :build_type, :username, :password
- validates :teamcity_url, presence: true,
- format: { with: URI::regexp }, if: :activated?
+ validates :teamcity_url,
+ presence: true,
+ format: { with: URI::regexp }, if: :activated?
validates :build_type, presence: true, if: :activated?
- validates :username, presence: true,
- if: ->(service) { service.password? }, if: :activated?
- validates :password, presence: true,
- if: ->(service) { service.username? }, if: :activated?
+ validates :username,
+ presence: true,
+ if: ->(service) { service.password? }, if: :activated?
+ validates :password,
+ presence: true,
+ if: ->(service) { service.username? }, if: :activated?
attr_accessor :response