clenver 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWEzN2VmY2UxOGE5ZmI3NjA0NjY3NzY4NTBjYjY2MzQyODZiOGMxYw==
4
+ Mzg1MjBjNzY2ZjAzYmFlNDBmMGY1ZmU4MWZkMDIzMWVkYTYxNDVkNw==
5
5
  data.tar.gz: !binary |-
6
- ZGRiMzU3YjYwMGYxZWMwOGM5MWNmYzMxNjBjZTJjZDVkYTg5MTRkMA==
6
+ Y2VlMWRjM2UzMzkwODRlMmU2N2ZmMjI5NWY5MDY2YTIzZTQ5ZWVmYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzE0ODY5MTAyZTAyNmRlYWU3NDY4NGI3NTNmNzc5NzNkZWY3ZGU0ZTM1ZTc3
10
- ZjM4M2NiOGQyMGE4MjE1ZWMwMTg1Njc1OTkwNTk2ZGZmNWQ5NDcyZDY0ZWRm
11
- NzI5MGViODM1MTNkMWZhZGNjNWQwMTQ5NTgwYzU1NjQ2ZmE0Y2Q=
9
+ MzdlOWE5MjMwN2MyMDE0NzQ0MDhmOWMxMGQ4NTdkN2E3YmNjY2E4YTg4Mzgw
10
+ YmE4Nzg5NzBmMTk5OWM4YjAzMDYyMTZiYzgzNWFkZGQxOWExMGU5YmY5NWNl
11
+ NGZiMGRiMmJlMjE0MTY5MDJhZDhhMTJiZjljNmI1Y2NkMmFjYzI=
12
12
  data.tar.gz: !binary |-
13
- ZWNhZmU4ZTllNjIyMWRhNzgwZDJhNmI5MzJkNjZjNmQ5NTNkZDllNGJiMjM2
14
- MjhiZTQwODRiNDkyODE5NTY2YmQyODk0ZGFlZGJmNTIxMzhmMTkyZjE4ZTcy
15
- YmIwNmY5M2Y0MjQ0MzE0ZDZlZmYzNjViYmMxMzIxYTcxNmY5MWY=
13
+ NDRmNGZlYmI5ODEwYmNjYmIzMGY2NjAyN2U1MzlkZjE2ZmIxYzdhYWUyZGY3
14
+ OGM4YzVhOTNiNWViMjFiNjQ5MWYzNjM0NGU1ZmVlZTcyYTZkNTZhYTcwYzA5
15
+ YzRiYzM1NzNlNmE4ZGRlMTFmMGFkM2U5OTdhODA0OWIzMDcyYjk=
data/bin/clenver CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'gli'
3
- require 'clenver/logging'
4
3
  begin # XXX: Remove this begin/rescue before distributing your app
5
4
  require 'clenver'
6
5
  require 'clenver/runner'
6
+ require 'clenver/logging'
7
7
  rescue LoadError
8
8
  STDERR.puts "In development, you need to use `bundle exec bin/clenver` to run your app"
9
9
  STDERR.puts "At install-time, RubyGems will make sure lib, etc. are in the load path"
@@ -0,0 +1,31 @@
1
+ require 'gli'
2
+ require 'clenver/project'
3
+ require 'clenver/logging'
4
+
5
+ module Clenver
6
+ class Runner
7
+ include Logging
8
+
9
+ def initialize(path, dst)
10
+ @path = path
11
+ @dst = dst
12
+ end
13
+
14
+ def start
15
+ if File.exist?(@path)
16
+ begin
17
+ yaml = Psych.load_file("#{@path}")
18
+ logger.debug("yaml: #{yaml}")
19
+ #TODO: create test and fix this place with check for empty file
20
+ p = Project.new(File.basename("#{@path}", ".yml"), yaml, @dst)
21
+ p.create_repos
22
+ p.init_project
23
+ rescue Psych::SyntaxError => ex
24
+ exit_now!("#{@path}: syntax error : #{ex.message}", 1)
25
+ end
26
+ else
27
+ exit_now!("#{@path} no such file or directory", 2)
28
+ end
29
+ end
30
+ end
31
+ end
@@ -1,3 +1,3 @@
1
1
  module Clenver
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clenver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Król
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-21 00:00:00.000000000 Z
11
+ date: 2013-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -109,6 +109,7 @@ files:
109
109
  - lib/clenver/project.rb
110
110
  - lib/clenver/repository.rb
111
111
  - lib/clenver/link.rb
112
+ - lib/clenver/runner.rb
112
113
  - lib/clenver/logging.rb
113
114
  - lib/clenver/assets/sample.yml
114
115
  - lib/clenver.rb