18
18
19
19
/ TODO Need better formatting
20
20
/ TODO Better error notification
21
- / TODO Information on programatic uploads
22
21
%h3 Upload Puppet Module
23
22
24
- Specify below the location of the Puppet module .tar.gz file that you wish to publish.
23
+ %div .section.site-width #content
24
+ Specify below the location of the Puppet module .tar.gz file that you wish to publish.
25
25
26
- The Puppet module .tar.gz file should be generated by executing
26
+ The Puppet module .tar.gz file should be generated by executing
27
27
28
- %div
29
- %pre
30
- puppet module build
28
+ %div .code-block
29
+ %pre
30
+ puppet module build
31
31
32
- The result will be a pkg directory at the top level of the module with the .tag.gz within it.
32
+ The result will be a pkg directory at the top level of the module with the .tag.gz within it.
33
+ Once the .tar.gz has been generated, it can be uploaded to this Puppet Forge server through the
34
+ form below or by executing the following curl command line.
33
35
34
- %span .search_error
35
- -if upload_status
36
- -case upload_status
37
- -when '200'
38
- File has been uploaded
39
- -when ''
40
- -else
41
- Upload has failed. #{upload_status}
36
+ %div .code-block
37
+ %pre
38
+ :markdown
39
+ curl -F "file=@pkg/_<name>_-_<version>_.tar.gz" #{request.env['REQUEST_URI']}
42
40
43
- %form {:action => '/upload', :method=>'post', :enctype=>'multipart/form-data' }
44
- %input{ :type => 'file', :name=>'file'}
45
- %input{ :type=>'submit', :value=>'Upload'}
41
+ %span .search_error
42
+ -if upload_status
43
+ -case upload_status
44
+ -when '200'
45
+ File has been uploaded
46
+ -when ''
47
+ -else
48
+ Upload has failed. #{upload_status}
49
+
50
+ %form {:action => '/upload', :method=>'post', :enctype=>'multipart/form-data' }
51
+ %input{ :type => 'file', :name=>'file'}
52
+ %input{ :type=>'submit', :value=>'Upload'}
0 commit comments