docora 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1269e0bb8da4a4be3e0dbc27a30c8e29f3899021
4
- data.tar.gz: 0b1bbbdfee2036a546e8f33eb4f7093c2566c052
3
+ metadata.gz: 9ab743048bd9c639293240c27cf35dde9fa21c4f
4
+ data.tar.gz: 01aabccf0b7a5026591954ac391db8fdc5ea11dc
5
5
  SHA512:
6
- metadata.gz: ec13312a2e01f2ee2986d32ce593703164cbc2cb9545278f4fd404e1b8024f9c43ff5fd6385457760319e2f513f5b14edf80f5308f0ed1ddfcd3b161e65cae2b
7
- data.tar.gz: cc4d281c795c34e56ae9e364a17bbe44eea2c907d9f49a4c1a800d2c33c92fa98dd19e0aee01bd0fa4b05846bcf16be13e7a5bcacd1a56d1b2611d673c2ac56b
6
+ metadata.gz: b9e64207b165edf49891cd443fb9f8881c4b7f625f75af51e24443e52f0e59ca1bfa44c6135b62be683d767fcc7207934e90956d8b3f8d006552a9c33083ac6e
7
+ data.tar.gz: 9e6a802dd3641e76b9fd9a75490a2722c9ee1100a7586f3506a3a3b70ea9d6d760fb9536b627994c634ea3abc5f3adfc135b9b0ec8b2488a55415ab8578deab6
data/README.md CHANGED
@@ -1,41 +1,35 @@
1
- # Docora
1
+ # Docora - Docker Compose + Rails
2
+ Run your rails app in docker using docker compose.
3
+ The intention is use this to dockerify your rails project for use anywhere in development.
2
4
 
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/docora`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ [![Gem Version](https://badge.fury.io/rb/docora.svg)](https://badge.fury.io/rb/docora)
4
6
 
5
- TODO: Delete this and the text above, and describe your gem
7
+ [get docker](https://docs.docker.com/engine/getstarted/step_one/#step-1-get-docker)
8
+ [docker-compose](https://docs.docker.com/compose/install/)
6
9
 
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'docora'
13
- ```
14
-
15
- And then execute:
10
+ docker --version
11
+ > Docker version 17.03.1-ce, build c6d412e
16
12
 
17
- $ bundle
13
+ docker-compose --version
14
+ > docker-compose version 1.11.2, build dfed245
18
15
 
19
- Or install it yourself as:
16
+ ## Installation
20
17
 
21
18
  $ gem install docora
22
19
 
23
20
  ## Usage
24
21
 
25
- TODO: Write usage instructions here
22
+ docora setup # in your project
23
+ docora up # start the docker containers
26
24
 
27
25
  ## Development
28
26
 
29
- After checking out the repo, run `bin/setup` to install dependencies. 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).
27
+ Coming soon...
32
28
 
33
29
  ## Contributing
34
30
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/docora.
36
-
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/dakotalightning/docora.
37
32
 
38
33
  ## License
39
34
 
40
35
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
@@ -106,6 +106,12 @@ module Docora
106
106
  "2.4.1"
107
107
  ]
108
108
 
109
+ if File.exists?('.gitignore')
110
+ append_to_file ".gitignore", "#{project}/"
111
+ else
112
+ create_file ".gitignore", "#{project}/"
113
+ end
114
+
109
115
  if File.exists?('.ruby-version')
110
116
  ruby_version = File.read('.ruby-version').strip
111
117
  elsif File.exists?('Gemfile')
@@ -218,7 +224,7 @@ module Docora
218
224
  def docker_running?
219
225
  version = run('docker version', capture: true, verbose: false)
220
226
  docker_version = YAML.load(version)
221
- abort_with "Please make sure docker is running" unless docker_version["Client"]
227
+ abort_with "Please make sure docker is running" unless docker_version["Server"]
222
228
  end
223
229
 
224
230
  def ask(question, answer_type, &details)
@@ -1,3 +1,3 @@
1
1
  module Docora
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dakota Lightning