elastic_transcoder 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ElasticTranscoder
2
2
 
3
- TODO: Write a gem description
3
+ This gem is intended to manage the elastic transcoder services of Amazon Web Services
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,8 +18,66 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ First thing to do is to create an rails initilizer with your amazon credentials(initializers/elastic_transcoder.rb):
22
22
 
23
+ ElasticTranscoder::Transcoder::Base.amazon_credentials = {
24
+ :provider => 'AWS', # required
25
+ :aws_access_key_id => 'YOUR_AMAZON_ACCESS_KEY', # required
26
+ :aws_secret_access_key => 'YOUR_AMAZON_SECRET_KEY', # required
27
+ :region => 'us-east-1' # optional, defaults to 'us-east-1'
28
+ }
29
+
30
+ After that, you can start using your transcoder
31
+
32
+ Creating the pipeline object:
33
+
34
+ pipeline_front = ElasticTranscoder::Pipeline.new
35
+
36
+ Creating a pipeline:
37
+
38
+ pipeline_front.create_pipeline "Pipeline_name", "input_amazon_s3_bucket", "output_amazon_s3_bucket", "default_role"
39
+
40
+ Deleting a Pipeline:
41
+
42
+ pipeline_front.delete_pipeline "pipeline_id"
43
+
44
+ Listing all pipelines:
45
+
46
+ pipeline_front.pipelines
47
+
48
+ Getting a specific pipeline:
49
+
50
+ pipeline_front.pipeline "pipeline_id"
51
+
52
+
53
+ Now for job creation
54
+
55
+ Creating the job object:
56
+
57
+ jobs_front = ElasticTranscoder::Jobs.new
58
+
59
+ Creating a job:
60
+
61
+ jobs_front.create_job "input_id", "output_id", "pipeline_id", "preset_id", "thumbnails_pattern"
62
+ Example: jobs_front.create_job "videos/my_vid.mov", "videos/encoded_vid.mov", "1364228226277-089c00", "1351620000000-000020", "videos/thumbnail-{count}"
63
+
64
+ Deleting a job:
65
+
66
+ jobs_front.delete_job "job_id"
67
+
68
+ Getting jobs by pipeline:
69
+
70
+ jobs_front.jobs_by_pipeline "pipeline_id"
71
+
72
+ Getting jobs by status (possible statuses [Submitted|Progressing|Complete|Canceled|Error]):
73
+
74
+ jobs_front.jobs_by_status "status"
75
+
76
+ Getting a specific job:
77
+
78
+ jobs_front.job "job_id"
79
+
80
+
23
81
  ## Contributing
24
82
 
25
83
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  module ElasticTranscoder
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_transcoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-02 00:00:00.000000000 Z
12
+ date: 2013-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty