Skip to content

Commit 0bf7eb6

Browse files
author
Clarke Brunsdon
committed
Rename to "oops"
Ops was taken.
1 parent ad394c3 commit 0bf7eb6

8 files changed

+22
-22
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
# Ops: The Opsworks Postal Service
1+
# Oops: The Opsworks Postal Service
22

3-
Ops handles the creation and deployment of rails applications to Amazon's Opsworks (http://aws.amazon.com/opsworks/).
3+
Oops handles the creation and deployment of rails applications to Amazon's Opsworks (http://aws.amazon.com/opsworks/).
44

55
It provides rake tasks to bundle your application, along with all of its assets, into a .zip that is uploaded to s3. That artifact is then used to deploy your application. This saves production boxes from running asset precompiles and avoids git checkouts on your running servers.
66

77
## Installation
88

99
Add this line to your application's Gemfile:
1010

11-
gem 'ops'
11+
gem 'oops'
1212

1313
And then execute:
1414

1515
$ bundle
1616

1717
Or install it yourself as:
1818

19-
$ gem install ops
19+
$ gem install oops
2020

2121
## Usage
2222

2323
Variables are passed into ops using both environment variables and rake arguements.
2424

2525
To create a build:
26-
AWS_ACCESS_KEY_ID=MY_ACCESS_KEY AWS_SECRET_ACCESS_KEY=MY_SECRET_KEY DEPLOY_BUCKET=ops-deploy PACKAGE_FOLDER=opsbuilds bundle exec rake ops:build
26+
AWS_ACCESS_KEY_ID=MY_ACCESS_KEY AWS_SECRET_ACCESS_KEY=MY_SECRET_KEY DEPLOY_BUCKET=oops-deploy PACKAGE_FOLDER=opsbuilds bundle exec rake oops:build
2727

2828
To upload a build:
29-
AWS_ACCESS_KEY_ID=MY_ACCESS_KEY AWS_SECRET_ACCESS_KEY=MY_SECRET_KEY DEPLOY_BUCKET=ops-deploy PACKAGE_FOLDER=opsbuilds bundle exec rake ops:upload
29+
AWS_ACCESS_KEY_ID=MY_ACCESS_KEY AWS_SECRET_ACCESS_KEY=MY_SECRET_KEY DEPLOY_BUCKET=oops-deploy PACKAGE_FOLDER=opsbuilds bundle exec rake oops:upload
3030

3131
To deploy a build:
32-
AWS_ACCESS_KEY_ID=MY_ACCESS_KEY AWS_SECRET_ACCESS_KEY=MY_SECRET_KEY DEPLOY_BUCKET=ops-deploy PACKAGE_FOLDER=opsbuilds bundle exec rake ops:deploy[my_application_name,my_stack_name]
32+
AWS_ACCESS_KEY_ID=MY_ACCESS_KEY AWS_SECRET_ACCESS_KEY=MY_SECRET_KEY DEPLOY_BUCKET=oops-deploy PACKAGE_FOLDER=opsbuilds bundle exec rake oops:deploy[my_application_name,my_stack_name]
3333

3434
By default, these tasks will all deploy what is in your current HEAD, but can also be passed an optional ref to deploy a specific revision.
3535

lib/oops.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require "oops/version"
2+
require "oops/opsworks_deploy"
3+
require 'oops/railtie' if defined?(Rails)

lib/ops/opsworks_deploy.rb lib/oops/opsworks_deploy.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Ops class OpsworksDeploy
1+
module Oops class OpsworksDeploy
22
attr_accessor :stack_name, :app_name
33

44
def initialize(app_name, stack_name)
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
module Ops
1+
module Oops
22
class Railtie < ::Rails::Railtie
33
rake_tasks do
4-
load 'ops/tasks.rb'
4+
load 'oops/tasks.rb'
55
end
66
end
77
end

lib/ops/tasks.rb lib/oops/tasks.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
require 'ops/opsworks_deploy'
1+
require 'oops/opsworks_deploy'
22
require 'aws'
3-
namespace :ops do
3+
namespace :oops do
44
task :build, :ref do |t, args|
55
args.with_defaults ref: build_hash
66

@@ -42,7 +42,7 @@
4242
raise "Artifact \"#{file_url}\" doesn't seem to exist\nMake sure you've run `RAILS_ENV=deploy rake opsworks:build opsworks:upload` before deploying"
4343
end
4444

45-
ops = Ops::OpsworksDeploy.new args.app_name, args.stack_name
45+
ops = Oops::OpsworksDeploy.new args.app_name, args.stack_name
4646
deployment = ops.deploy(file_url)
4747

4848
STDOUT.sync = true
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module Ops
1+
module Oops
22
VERSION = "0.0.1"
33
end

lib/ops.rb

-3
This file was deleted.

ops.gemspec oops.gemspec

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# coding: utf-8
22
lib = File.expand_path('../lib', __FILE__)
33
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4-
require 'ops/version'
4+
require 'oops/version'
55

66
Gem::Specification.new do |spec|
7-
spec.name = "ops"
8-
spec.version = Ops::VERSION
7+
spec.name = "oops"
8+
spec.version = Oops::VERSION
99
spec.authors = ["Clarke Brunsdon"]
1010
spec.email = ["[email protected]"]
11-
spec.description = %q{Opsworks Postal Service: Made to ship code}
11+
spec.description = %q{Oops Opsworks Postal Service: Made to ship code}
1212
spec.summary = %q{Provides rake tasks to create and deploy build artifacts to opsworks}
13-
spec.homepage = "http://github.com/freerunningtech/ops"
13+
spec.homepage = "http://github.com/freerunningtech/oops"
1414
spec.license = "MIT"
1515

1616
spec.files = `git ls-files`.split($/)

0 commit comments

Comments
 (0)