aboutsummaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorPeter Wilmott <p@p8952.info>2015-01-21 14:47:11 +0000
committerPeter Wilmott <p@p8952.info>2015-01-21 14:47:11 +0000
commit47ce0963b4f4220c58637355953a2ad4c48e7424 (patch)
tree49f2e36a3896d0f5916882f0535c7bc1136560cb /web/lib
parentRemove whitespace (diff)
downloadruby-tinderbox-47ce0963b4f4220c58637355953a2ad4c48e7424.tar.gz
ruby-tinderbox-47ce0963b4f4220c58637355953a2ad4c48e7424.tar.bz2
ruby-tinderbox-47ce0963b4f4220c58637355953a2ad4c48e7424.zip
Some style improvements, thanks rubocop! :thumbsup:
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/aws.rb2
-rw-r--r--web/lib/ci.rb2
-rw-r--r--web/lib/packages.rb6
3 files changed, 5 insertions, 5 deletions
diff --git a/web/lib/aws.rb b/web/lib/aws.rb
index 70dec04..be6f850 100644
--- a/web/lib/aws.rb
+++ b/web/lib/aws.rb
@@ -36,7 +36,7 @@ def start_instance
retry
end
- return instance, key_pair
+ [instance, key_pair]
end
def delete_instance(instance)
diff --git a/web/lib/ci.rb b/web/lib/ci.rb
index 10e86b0..846318f 100644
--- a/web/lib/ci.rb
+++ b/web/lib/ci.rb
@@ -23,7 +23,7 @@ def run_ci(num_of_packages, provisioner)
:dependencies,
"#{package[:category]}/#{package[:name]} %",
"% #{package[:category]}/#{package[:name]} %",
- "% #{package[:category]}/#{package[:name]}",
+ "% #{package[:category]}/#{package[:name]}"
)).each do |rdep|
packages << rdep[:identifier]
end
diff --git a/web/lib/packages.rb b/web/lib/packages.rb
index 13599f8..cd18160 100644
--- a/web/lib/packages.rb
+++ b/web/lib/packages.rb
@@ -5,8 +5,8 @@ def update_packages
identifier = category + '/' + name + '-' + version + (revision == 'r0' ? '' : "-#{revision}")
gem_version = Gems.info(name)['version']
gem_version = 'nil' if gem_version.nil?
- #ebuild = "/usr/portage/#{category}/#{name}/#{identifier.split('/')[1]}.ebuild"
- #ebuild_hash = Digest::MD5.hexdigest(File.read(ebuild))
+ # ebuild = "/usr/portage/#{category}/#{name}/#{identifier.split('/')[1]}.ebuild"
+ # ebuild_hash = Digest::MD5.hexdigest(File.read(ebuild))
Package.find_or_create(
category: category,
name: name,
@@ -19,7 +19,7 @@ def update_packages
r19_target: r19_target,
r20_target: r20_target,
r21_target: r21_target,
- r22_target: r22_target,
+ r22_target: r22_target
)
end