grache 0.0.1 → 0.0.2.pre.rc0

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: f0ae2024e06700b8be0a525fe51affe55bf6896b
4
- data.tar.gz: b326b3f8cb826664c1da5d961523bb33d13dc4a4
3
+ metadata.gz: 75fee055b46ca3635e4964b37e6db940a5a97d4d
4
+ data.tar.gz: 898a8d57aaac8b50f465979a4b581a3240cc31d2
5
5
  SHA512:
6
- metadata.gz: 7b9924cab8cf84853335ef8879320744238e646b3a4cb15714e01de07a1ed348544175129ca22ce877a4f168623717a298c3ca6d2c75ca52ed3c82b317179bb5
7
- data.tar.gz: 41cc3a8dcb006a2f7cf826d93e025b1ac08588b75763f0e5d252b014c922a8612fdc65ee3b4e93f00c3e15cef84f05fbc1dc9e8e1f7df0f380f053890d7255fe
6
+ metadata.gz: 89292ad6c95076d66b6fb26cb82d604422f3a05d6ae1732625334d65b4ae8333365bf2895b3292c9f04ec5e1381dc485e007d965402a91626c89fe19e931301c
7
+ data.tar.gz: 9efbb1add2b7b95bf1a70009d9909981104a0141d88bd0008bf24e93ef085f40fcfff1afbac2fe520da40283f42b9ebe9bda9b9e3dc45690523a2ad0e49a2b50
@@ -6,11 +6,22 @@ require_relative '../shared'
6
6
  require_relative '../../packer/packer'
7
7
 
8
8
  Grache::CLI.module_eval do
9
- desc 'Pack gems'
10
- command :pack do |cmd|
11
- cmd.action do |global_options, options, _args|
12
- _opts = options.merge(global_options)
13
- Grache::Packer.new.pack
9
+ desc 'Manage your pack'
10
+ command :pack do |c|
11
+ c.desc 'Build packe'
12
+ c.command :pack do |cmd|
13
+ cmd.action do |global_options, options, _args|
14
+ _opts = options.merge(global_options)
15
+ Grache::Packer.new.pack
16
+ end
17
+ end
18
+
19
+ c.desc 'Install pack'
20
+ c.command :install do |cmd|
21
+ cmd.action do |global_options, options, _args|
22
+ _opts = options.merge(global_options)
23
+ Grache::Packer.new.install
24
+ end
14
25
  end
15
26
  end
16
27
  end
@@ -1,6 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'fileutils'
4
+ require 'json'
4
5
  require 'tmpdir'
5
6
 
6
7
  require 'rubygems'
@@ -98,16 +99,6 @@ module Grache
98
99
 
99
100
  cmd = CMDS['bundle-pack'] % gemfile
100
101
  exec_cmd(cmd)
101
-
102
- # cmd = CMDS['bundle-install-deployment'] % [gemfile]
103
- # exec_cmd(cmd)
104
-
105
- # gems = ::Bundler.rubygems.all_specs
106
-
107
- # Dir.chdir(gem_dir) do
108
- # Dir.mktmpdir do |tmp_dir|
109
- # end
110
- # end
111
102
  end
112
103
  end
113
104
 
@@ -120,6 +111,10 @@ module Grache
120
111
  Packer.get_checksum(path)
121
112
  end
122
113
 
114
+ def install(opts = {})
115
+ puts "Installing pack: #{JSON.pretty_generate(opts)}"
116
+ end
117
+
123
118
  def pack(opts = DEFAULT_PACK_OPTIONS)
124
119
  Packer.pack(opts)
125
120
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Grache
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2-rc0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2.pre.rc0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Korcak