@@ -5,18 +5,18 @@ class RemoteServerJob < ActiveJob::Base
55
66 SCRIPTS_PATH = './ruby-bench-docker/scripts'
77
8- RUBY_TRUNK = "#{ SCRIPTS_PATH } /ruby/trunk.sh"
8+ RUBY_COMMIT = "#{ SCRIPTS_PATH } /ruby/trunk.sh"
99 RUBY_RELEASE = "#{ SCRIPTS_PATH } /ruby/releases.sh"
1010
11- RAILS_MASTER = "#{ SCRIPTS_PATH } /rails/master.sh"
11+ RAILS_COMMIT = "#{ SCRIPTS_PATH } /rails/master.sh"
1212 RAILS_RELEASE = "#{ SCRIPTS_PATH } /rails/releases.sh"
1313
14- SEQUEL_MASTER = "#{ SCRIPTS_PATH } /sequel/master.sh"
14+ SEQUEL_COMMIT = "#{ SCRIPTS_PATH } /sequel/master.sh"
1515 SEQUEL_RELEASE = "#{ SCRIPTS_PATH } /sequel/releases.sh"
1616
1717 BUNDLER_RELEASE = "#{ SCRIPTS_PATH } /bundler/releases.sh"
1818
19- PG_MASTER = "#{ SCRIPTS_PATH } /pg/master.sh"
19+ PG_COMMIT = "#{ SCRIPTS_PATH } /pg/master.sh"
2020
2121 # Use keyword arguments once Rails 4.2.1 has been released.
2222 def perform ( initiator_key , benchmark_group , options = { } )
@@ -32,7 +32,7 @@ def perform(initiator_key, benchmark_group, options = {})
3232
3333 private
3434
35- def ruby_trunk ( ssh , commit_hash , options )
35+ def ruby_commit ( ssh , commit_hash , options )
3636 ruby = true
3737 memory = true
3838 optcarrot = true
@@ -41,11 +41,11 @@ def ruby_trunk(ssh, commit_hash, options)
4141
4242 ssh_exec! (
4343 ssh ,
44- "#{ RUBY_TRUNK } #{ ruby } #{ memory } #{ optcarrot } #{ liquid } #{ commit_hash } #{ secrets . api_name } #{ secrets . api_password } #{ patterns } "
44+ "#{ RUBY_COMMIT } #{ ruby } #{ memory } #{ optcarrot } #{ liquid } #{ commit_hash } #{ secrets . api_name } #{ secrets . api_password } #{ patterns } "
4545 )
4646 end
4747
48- def ruby_releases ( ssh , version , options )
48+ def ruby_release ( ssh , version , options )
4949 ruby = true
5050 memory = true
5151 optcarrot = true
@@ -58,7 +58,7 @@ def ruby_releases(ssh, version, options)
5858 )
5959 end
6060
61- def ruby_releases_discourse ( ssh , ruby_version , options )
61+ def ruby_release_discourse ( ssh , ruby_version , options )
6262 execute_ssh_commands ( ssh ,
6363 [
6464 'docker pull rubybench/ruby_releases_discourse' ,
@@ -77,7 +77,7 @@ def ruby_releases_discourse(ssh, ruby_version, options)
7777 )
7878 end
7979
80- def ruby_trunk_discourse ( ssh , commit_hash , options )
80+ def ruby_commit_discourse ( ssh , commit_hash , options )
8181 execute_ssh_commands ( ssh ,
8282 [
8383 'docker pull rubybench/ruby_trunk_discourse' ,
@@ -94,41 +94,41 @@ def ruby_trunk_discourse(ssh, commit_hash, options)
9494 )
9595 end
9696
97- def rails_releases ( ssh , version , options )
97+ def rails_release ( ssh , version , options )
9898 prepared_statements = if version >= '4.2.5' then 1 else 0 end
9999 patterns = options [ :include_patterns ]
100100
101101 ssh_exec! ( ssh , "#{ RAILS_RELEASE } #{ version } #{ secrets . api_name } #{ secrets . api_password } #{ prepared_statements } #{ patterns } " )
102102 end
103103
104- def rails_trunk ( ssh , commit_hash , options )
104+ def rails_commit ( ssh , commit_hash , options )
105105 patterns = options [ :include_patterns ]
106106
107- ssh_exec! ( ssh , "#{ RAILS_MASTER } #{ commit_hash } #{ secrets . api_name } #{ secrets . api_password } #{ patterns } " )
107+ ssh_exec! ( ssh , "#{ RAILS_COMMIT } #{ commit_hash } #{ secrets . api_name } #{ secrets . api_password } #{ patterns } " )
108108 end
109109
110- def sequel_releases ( ssh , version , options )
110+ def sequel_release ( ssh , version , options )
111111 patterns = options [ :include_patterns ]
112112
113113 ssh_exec! ( ssh , "#{ SEQUEL_RELEASE } #{ version } #{ secrets . api_name } #{ secrets . api_password } #{ patterns } " )
114114 end
115115
116- def sequel_trunk ( ssh , commit_hash , options )
116+ def sequel_commit ( ssh , commit_hash , options )
117117 patterns = options [ :include_patterns ]
118118
119- ssh_exec! ( ssh , "#{ SEQUEL_MASTER } #{ commit_hash } #{ secrets . api_name } #{ secrets . api_password } #{ patterns } " )
119+ ssh_exec! ( ssh , "#{ SEQUEL_COMMIT } #{ commit_hash } #{ secrets . api_name } #{ secrets . api_password } #{ patterns } " )
120120 end
121121
122- def bundler_releases ( ssh , version , options )
122+ def bundler_release ( ssh , version , options )
123123 patterns = options [ :include_patterns ]
124124
125125 ssh_exec! ( ssh , "#{ BUNDLER_RELEASE } #{ version } #{ secrets . api_name } #{ secrets . api_password } #{ patterns } " )
126126 end
127127
128- def pg_master ( ssh , commit_hash , options )
128+ def pg_commit ( ssh , commit_hash , options )
129129 patterns = options [ :include_patterns ]
130130
131- ssh_exec! ( ssh , "#{ PG_MASTER } #{ commit_hash } #{ secrets . api_name } #{ secrets . api_password } #{ patterns } " )
131+ ssh_exec! ( ssh , "#{ PG_COMMIT } #{ commit_hash } #{ secrets . api_name } #{ secrets . api_password } #{ patterns } " )
132132 end
133133
134134 def execute_ssh_commands ( ssh , commands )
0 commit comments