add jobs and jobsteps
authorTom Clegg <tom@clinicalfuture.com>
Sun, 3 Feb 2013 11:56:40 +0000 (03:56 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Sun, 3 Feb 2013 11:56:40 +0000 (03:56 -0800)
19 files changed:
app/assets/javascripts/job_steps.js.coffee [new file with mode: 0644]
app/assets/javascripts/jobs.js.coffee [new file with mode: 0644]
app/assets/stylesheets/job_steps.css.scss [new file with mode: 0644]
app/assets/stylesheets/jobs.css.scss [new file with mode: 0644]
app/controllers/job_steps_controller.rb [new file with mode: 0644]
app/controllers/jobs_controller.rb [new file with mode: 0644]
app/helpers/job_steps_helper.rb [new file with mode: 0644]
app/helpers/jobs_helper.rb [new file with mode: 0644]
app/models/job.rb [new file with mode: 0644]
app/models/job_step.rb [new file with mode: 0644]
config/routes.rb
test/fixtures/job_steps.yml [new file with mode: 0644]
test/fixtures/jobs.yml [new file with mode: 0644]
test/functional/job_steps_controller_test.rb [new file with mode: 0644]
test/functional/jobs_controller_test.rb [new file with mode: 0644]
test/unit/helpers/job_steps_helper_test.rb [new file with mode: 0644]
test/unit/helpers/jobs_helper_test.rb [new file with mode: 0644]
test/unit/job_step_test.rb [new file with mode: 0644]
test/unit/job_test.rb [new file with mode: 0644]

diff --git a/app/assets/javascripts/job_steps.js.coffee b/app/assets/javascripts/job_steps.js.coffee
new file mode 100644 (file)
index 0000000..7615679
--- /dev/null
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
diff --git a/app/assets/javascripts/jobs.js.coffee b/app/assets/javascripts/jobs.js.coffee
new file mode 100644 (file)
index 0000000..7615679
--- /dev/null
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
diff --git a/app/assets/stylesheets/job_steps.css.scss b/app/assets/stylesheets/job_steps.css.scss
new file mode 100644 (file)
index 0000000..9c2639b
--- /dev/null
@@ -0,0 +1,3 @@
+// Place all the styles related to the JobSteps controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/assets/stylesheets/jobs.css.scss b/app/assets/stylesheets/jobs.css.scss
new file mode 100644 (file)
index 0000000..e485745
--- /dev/null
@@ -0,0 +1,3 @@
+// Place all the styles related to the Jobs controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/controllers/job_steps_controller.rb b/app/controllers/job_steps_controller.rb
new file mode 100644 (file)
index 0000000..ce5a43c
--- /dev/null
@@ -0,0 +1,2 @@
+class JobStepsController < ApplicationController
+end
diff --git a/app/controllers/jobs_controller.rb b/app/controllers/jobs_controller.rb
new file mode 100644 (file)
index 0000000..c890844
--- /dev/null
@@ -0,0 +1,2 @@
+class JobsController < ApplicationController
+end
diff --git a/app/helpers/job_steps_helper.rb b/app/helpers/job_steps_helper.rb
new file mode 100644 (file)
index 0000000..47ff614
--- /dev/null
@@ -0,0 +1,2 @@
+module JobStepsHelper
+end
diff --git a/app/helpers/jobs_helper.rb b/app/helpers/jobs_helper.rb
new file mode 100644 (file)
index 0000000..44c7bf6
--- /dev/null
@@ -0,0 +1,2 @@
+module JobsHelper
+end
diff --git a/app/models/job.rb b/app/models/job.rb
new file mode 100644 (file)
index 0000000..a779d8d
--- /dev/null
@@ -0,0 +1,2 @@
+class Job < OrvosBase
+end
diff --git a/app/models/job_step.rb b/app/models/job_step.rb
new file mode 100644 (file)
index 0000000..8cdbed1
--- /dev/null
@@ -0,0 +1,2 @@
+class JobStep < OrvosBase
+end
index ce8f8c4ae40d1fea9f458ff3936654da12906fa0..6a7e9f64cd612fa75b59ee319d43a02256b9d8bd 100644 (file)
@@ -1,4 +1,10 @@
 Vcffarm::Application.routes.draw do
+  resources :job_steps
+
+
+  resources :jobs
+
+
   match '/logout' => 'sessions#destroy'
   match '/logged_out' => 'sessions#index'
 
diff --git a/test/fixtures/job_steps.yml b/test/fixtures/job_steps.yml
new file mode 100644 (file)
index 0000000..c63aac0
--- /dev/null
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
+
+# This model initially had no columns defined.  If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+#  column: value
diff --git a/test/fixtures/jobs.yml b/test/fixtures/jobs.yml
new file mode 100644 (file)
index 0000000..c63aac0
--- /dev/null
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
+
+# This model initially had no columns defined.  If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+#  column: value
diff --git a/test/functional/job_steps_controller_test.rb b/test/functional/job_steps_controller_test.rb
new file mode 100644 (file)
index 0000000..5a9198b
--- /dev/null
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class JobStepsControllerTest < ActionController::TestCase
+  # test "the truth" do
+  #   assert true
+  # end
+end
diff --git a/test/functional/jobs_controller_test.rb b/test/functional/jobs_controller_test.rb
new file mode 100644 (file)
index 0000000..ac43b3d
--- /dev/null
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class JobsControllerTest < ActionController::TestCase
+  # test "the truth" do
+  #   assert true
+  # end
+end
diff --git a/test/unit/helpers/job_steps_helper_test.rb b/test/unit/helpers/job_steps_helper_test.rb
new file mode 100644 (file)
index 0000000..8ba4f82
--- /dev/null
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class JobStepsHelperTest < ActionView::TestCase
+end
diff --git a/test/unit/helpers/jobs_helper_test.rb b/test/unit/helpers/jobs_helper_test.rb
new file mode 100644 (file)
index 0000000..7c4a3fd
--- /dev/null
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class JobsHelperTest < ActionView::TestCase
+end
diff --git a/test/unit/job_step_test.rb b/test/unit/job_step_test.rb
new file mode 100644 (file)
index 0000000..c87035a
--- /dev/null
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class JobStepTest < ActiveSupport::TestCase
+  # test "the truth" do
+  #   assert true
+  # end
+end
diff --git a/test/unit/job_test.rb b/test/unit/job_test.rb
new file mode 100644 (file)
index 0000000..5079316
--- /dev/null
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class JobTest < ActiveSupport::TestCase
+  # test "the truth" do
+  #   assert true
+  # end
+end