Skip to content

Issue 19#1435

Closed
shimizuf wants to merge 197 commits intocrowbar:masterfrom
servicecatalog:issue_19
Closed

Issue 19#1435
shimizuf wants to merge 197 commits intocrowbar:masterfrom
servicecatalog:issue_19

Conversation

@shimizuf
Copy link

Fixes #19

@shimizuf shimizuf closed this Nov 14, 2017
server_nodes = nodes.select { |n| n.intended_role == "controller" }
server_nodes = [nodes.first] if server_nodes.empty?

base["deployment"][@bc_name]["elements"] = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/MultilineIfModifier: Favor a normal unless-statement over a modifier clause in a multiline statement. (https://github.com/bbatsov/ruby-style-guide#no-multiline-if-modifiers)

def proposal_dependencies(role)
answer = []
["heat"].each do |dep|
answer << { "barclamp" => dep, "inst" => role.default_attributes[@bc_name]["#{dep}_instance"] }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [101/100] (https://github.com/SUSE/style-guides/blob/master/Ruby.md#metricslinelength)

"suse" => "< 12.1",
"windows" => "/.*/"
}
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)

"data-sslcert" => "/etc/escm/ssl/certs/signing_cert.pem",
"data-sslkey" => "/etc/escm/ssl/private/signing_key.pem"

#ssl_container

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id attribute must be in lisp-case

"data-showit" => "true",
"data-showit-target" => "#proxyauth_container",
"data-showit-direct" => "true"
#proxyauth_container

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id attribute must be in lisp-case

command = "scp #{args} #{escm_install_path}/user-data/deploy-escmserver #{ip_appserver}:#{escm_path}/config/"
command_out = shell_out(command)
command = "ssh #{args} #{ip_appserver} 'chmod 755 #{escm_path}/config/deploy-escmserver'"
command_out = shell_out(command)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint/UselessAssignment: Useless assignment to variable - command_out. (https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars)

command = "scp #{args} #{escm_ssl_cacerts} #{ip_appserver}:#{escm_path}/ssl/escm.chain"
end
command = "scp #{args} #{escm_install_path}/user-data/deploy-escmserver #{ip_appserver}:#{escm_path}/config/"
command_out = shell_out(command)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint/UselessAssignment: Useless assignment to variable - command_out. (https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars)

command_out = shell_out(command)
command = "scp #{args} #{escm_ssl_cacerts} #{ip_appserver}:#{escm_path}/ssl/escm.chain"
end
command = "scp #{args} #{escm_install_path}/user-data/deploy-escmserver #{ip_appserver}:#{escm_path}/config/"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [115/100] (https://github.com/SUSE/style-guides/blob/master/Ruby.md#metricslinelength)

command_out = shell_out(command)
command = "scp #{args} #{escm_ssl_keyfile} #{ip_appserver}:#{escm_path}/ssl/escm.key"
command_out = shell_out(command)
command = "scp #{args} #{escm_ssl_cacerts} #{ip_appserver}:#{escm_path}/ssl/escm.chain"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint/UselessAssignment: Useless assignment to variable - command. (https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars)

command = "scp #{args} #{escm_ssl_certfile} #{ip_appserver}:#{escm_path}/ssl/escm.crt"
command_out = shell_out(command)
command = "scp #{args} #{escm_ssl_keyfile} #{ip_appserver}:#{escm_path}/ssl/escm.key"
command_out = shell_out(command)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint/UselessAssignment: Useless assignment to variable - command_out. (https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars)

@shimizuf shimizuf deleted the issue_19 branch November 14, 2017 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants