devstructure 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/devstructure/blueprint.rb +18 -3
  2. metadata +4 -4
@@ -49,14 +49,29 @@ class DevStructure::Blueprint < Hash
49
49
  b
50
50
  end
51
51
 
52
- def self.disclaimer
52
+ def disclaimer
53
53
  puts <<EOF
54
+ #
55
+ # #{owner}'s #{name}
56
+ # http#{token ? "s" : ""}://devstructure.com/blueprints/#{owner}/#{name}
57
+ EOF
58
+ if token
59
+ puts <<EOF
60
+ #
61
+ # This blueprint is private. You may share it by adding trusted users
62
+ # or by sharing this secret URL:
63
+ # https://devstructure.com/blueprints/#{owner}/#{name}/#{token}
64
+ EOF
65
+ end
66
+ puts <<EOF
67
+ #
54
68
  # This file was automatically generated by ruby-devstructure(7).
69
+ #
55
70
  EOF
56
71
  end
57
72
 
58
73
  def sh
59
- self.class.disclaimer
74
+ disclaimer
60
75
 
61
76
  # Packages.
62
77
  walk(
@@ -94,7 +109,7 @@ EOF
94
109
  end
95
110
 
96
111
  def puppet
97
- self.class.disclaimer
112
+ disclaimer
98
113
  puts "class #{@name} {"
99
114
  puts Exec.defaults(:path => ENV["PATH"].split(":"))
100
115
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devstructure
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Crowley
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-13 00:00:00 +00:00
18
+ date: 2010-06-14 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency