Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 19 #1435

Closed
wants to merge 197 commits into from
Closed

Issue 19 #1435

wants to merge 197 commits into from

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.

"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.

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