title: Need to execute a ruby file from Amazon web service Data pipeline
body: <p>i have a ruby file in my application and i need to call and execute a ruby file as background job from amazon web service data pipeline</p>
  
  <p>i have given the json file below</p>
  
  <pre><code>    #json file
      {  "objects": [
      {
        "id": "ScheduleId4",
        "startDateTime": "2013-08-01T00:00:00",
        "name": "schedule",
        "type": "Schedule",
        "period": "15 Minutes"
      },
      {
        "id": "DataNodeId2",
        "schedule": {
          "ref": "ScheduleId4"
        },
        "name": "Input",
        "directoryPath": "s3://pipeline_test/input/",
        "type": "S3DataNode"
      },
      {
        "id": "ActivityId1",
        "input": {
          "ref": "DataNodeId2"
        },
        "schedule": {
          "ref": "ScheduleId4"
        },
        "stdout": "s3://pipeline_test/logs",
        "scriptUri": "s3://pipeline_test/input/sample.sh",
        "name": "Shell",
        "runsOn": {
          "ref": "ResourceId5"
        },
        "stderr": "s3://pipeline_test/logs",
        "type": "ShellCommandActivity",
        "output": {
          "ref": "DataNodeId3"
        },
        "stage": "true"
      },
      {
        "terminateAfter": "1 Hours",
        "id": "ResourceId5",
        "schedule": {
          "ref": "ScheduleId4"
        },
        "name": "Resource1",
        "logUri": "s3://pipeline_test/logs/",
        "type": "Ec2Resource"
      },
      {
        "id": "Default",
        "scheduleType": "timeseries",
        "name": "Default",
        "role": "DataPipelineDefaultRole",
        "resourceRole": "DataPipelineDefaultResourceRole"
      },
      {
        "id": "DataNodeId3",
        "schedule": {
          "ref": "ScheduleId4"
        },
        "directoryPath": "s3://pipeline_test/output1/",
        "name": "Output",
        "type": "S3DataNode"
      }
    ]
  }
  </code></pre>
  
  <h1>sample.sh</h1>
  
  <pre><code> echo "Hello"
   ruby sample.rb
  </code></pre>
  
  <h1>sample.rb</h1>
  
  <pre><code> puts "Hello world"
  </code></pre>
  
  <p>i have given correct path of sample.sh file. Still i am not to get the sample.rb calling or not.
  Anyone tell me step by step procedure to follow it as i am newbie to amazon web service datapipeline.</p>
  
  <p>Help me to solve it.</p>