ora-cli 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/README.md +36 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/ora +13 -0
- data/bin/ora_selecta +840 -0
- data/bin/setup +8 -0
- data/lib/ora/cli/bash.rb +96 -0
- data/lib/ora/cli/print.rb +27 -0
- data/lib/ora/cli/stdin.rb +22 -0
- data/lib/ora/cli/task.rb +43 -0
- data/lib/ora/cli/tasks/new_feature_branch.rb +21 -0
- data/lib/ora/cli/tasks/push_feature_branch.rb +15 -0
- data/lib/ora/cli/tasks/push_to_master.rb +51 -0
- data/lib/ora/cli/tasks/push_to_staging.rb +26 -0
- data/lib/ora/cli/tasks/push_to_uat.rb +26 -0
- data/lib/ora/cli/version.rb +5 -0
- data/lib/ora/cli.rb +10 -0
- data/ora-cli.gemspec +24 -0
- metadata +107 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3ea2aef5ad5a8316091a4fb7a7b296afa6157625
|
4
|
+
data.tar.gz: 3f5698b1fce87cd700007fe89ac1a2e68e13e560
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cfd588f6301a7af693ea582114a1bc4da53339b47e9493578570d765d83cc17f5d6e4c821515f3daca71455a7494cfe9a3eef790479fb1331880872a030418c0
|
7
|
+
data.tar.gz: 66a0d3e3284e39cb6daeac04d31b69d8504b32eac677efa9ddc0f382da6eb93ba13a96a312d52c82f667fb35c13c8750f6bbbbdb5dfb38717a033cf88f5281cc
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Ora::Cli
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ora/cli`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'ora-cli'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install ora-cli
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ora-cli.
|
36
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "ora/cli"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/ora
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
4
|
+
require 'ora/cli'
|
5
|
+
|
6
|
+
selecta = File.expand_path('../ora_selecta', __FILE__)
|
7
|
+
path = File.expand_path('../../lib/ora/cli/tasks', __FILE__)
|
8
|
+
remove_ext = "sed 's/\.[^.]*$//'"
|
9
|
+
project_path = `pwd`.strip
|
10
|
+
|
11
|
+
task = `ls #{path} | #{remove_ext} | #{selecta}`.strip
|
12
|
+
|
13
|
+
Ora::Cli.run task, project_path
|