forked from kindredgroup/puppet-forge-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy over initial upload ui by Gerard Hickey
- Loading branch information
Ilja Bobkevic
committed
Sep 2, 2015
1 parent
3ab3e0a
commit 6c5bd47
Showing
5 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
-# -*- encoding: utf-8 -*- | ||
-# | ||
-# Copyright 2015 North Development AB | ||
-# | ||
-# Author: Gerard Hickey | ||
-# | ||
-# Licensed under the Apache License, Version 2.0 (the "License"); | ||
-# you may not use this file except in compliance with the License. | ||
-# You may obtain a copy of the License at | ||
-# | ||
-# http://www.apache.org/licenses/LICENSE-2.0 | ||
-# | ||
-# Unless required by applicable law or agreed to in writing, software | ||
-# distributed under the License is distributed on an "AS IS" BASIS, | ||
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
-# See the License for the specific language governing permissions and | ||
-# limitations under the License. | ||
/ TODO Need better formatting | ||
/ TODO Better error notification | ||
/ TODO Information on programatic uploads | ||
%h3 Upload Puppet Module | ||
|
||
Specify below the location of the Puppet module .tar.gz file that you wish to publish. | ||
|
||
The Puppet module .tar.gz file should be generated by executing | ||
|
||
%div | ||
%pre | ||
puppet module build | ||
|
||
The result will be a pkg directory at the top level of the module with the .tag.gz within it. | ||
|
||
%span.search_error | ||
-if upload_status | ||
-case upload_status | ||
-when '200' | ||
File has been uploaded | ||
-when '' | ||
-else | ||
Upload has failed. #{upload_status} | ||
|
||
%form{:action => '/upload', :method=>'post', :enctype=>'multipart/form-data' } | ||
%input{ :type => 'file', :name=>'file'} | ||
%input{ :type=>'submit', :value=>'Upload'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters