Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
37eb3043
Commit
37eb3043
authored
Oct 06, 2014
by
Seth Vargo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to middleman-hashicorp
parent
cd23c390
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
117 deletions
+50
-117
website/Gemfile
website/Gemfile
+2
-12
website/Gemfile.lock
website/Gemfile.lock
+35
-9
website/config.rb
website/config.rb
+5
-88
website/source/downloads.html.erb
website/source/downloads.html.erb
+6
-6
website/source/index.html.erb
website/source/index.html.erb
+2
-2
No files found.
website/Gemfile
View file @
37eb3043
source
"https://rubygems.org"
source
'https://rubygems.org'
gem
"less"
,
"~> 2.6"
gem
"middleman"
,
"~> 3.3"
gem
"middleman-minify-html"
,
"~> 3.4"
gem
"rack-contrib"
,
"~> 1.1"
gem
"redcarpet"
,
"~> 3.1"
gem
"therubyracer"
,
"~> 0.12"
gem
"thin"
,
"~> 1.6"
group
:development
do
gem
"highline"
,
"~> 1.6"
end
gem
'middleman-hashicorp'
,
github:
'hashicorp/middleman-hashicorp'
website/Gemfile.lock
View file @
37eb3043
GIT
remote: git://github.com/hashicorp/middleman-hashicorp.git
revision: fe7d5bb4b04c408857dbe94345341cafcbc02de4
specs:
middleman-hashicorp (0.1.0)
bootstrap-sass (~> 3.2)
builder (~> 3.2)
less (~> 2.6)
middleman (~> 3.3)
middleman-livereload (~> 3.3)
middleman-minify-html (~> 3.4)
middleman-syntax (~> 2.0)
rack-contrib (~> 1.1)
redcarpet (~> 3.1)
therubyracer (~> 0.12)
thin (~> 1.6)
GEM
remote: https://rubygems.org/
specs:
...
...
@@ -7,6 +24,9 @@ GEM
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
bootstrap-sass (3.2.0.2)
sass (~> 3.2)
builder (3.2.2)
celluloid (0.16.0)
timers (~> 4.0.0)
chunky_png (1.3.1)
...
...
@@ -28,18 +48,21 @@ GEM
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
daemons (1.1.9)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
erubis (2.7.0)
eventmachine (1.0.3)
execjs (2.2.1)
ffi (1.9.5)
haml (4.0.5)
tilt
highline (1.6.21)
hike (1.2.3)
hitimes (1.2.2)
hooks (0.4.0)
uber (~> 0.0.4)
htmlcompressor (0.1.2)
http_parser.rb (0.6.0)
i18n (0.6.11)
json (1.8.1)
kramdown (1.4.2)
...
...
@@ -73,6 +96,10 @@ GEM
rack-test (~> 0.6.2)
thor (>= 0.15.2, < 2.0)
tilt (~> 1.4.1, < 2.0)
middleman-livereload (3.3.4)
em-websocket (~> 0.5.1)
middleman-core (~> 3.2)
rack-livereload (~> 0.3.15)
middleman-minify-html (3.4.0)
htmlcompressor (~> 0.1.0)
middleman-core (>= 3.2)
...
...
@@ -81,6 +108,9 @@ GEM
sprockets (~> 2.12.1)
sprockets-helpers (~> 1.1.0)
sprockets-sass (~> 1.2.0)
middleman-syntax (2.0.0)
middleman-core (~> 3.2)
rouge (~> 1.0)
minitest (5.4.2)
multi_json (1.10.1)
padrino-helpers (0.12.3)
...
...
@@ -92,6 +122,8 @@ GEM
rack (1.5.2)
rack-contrib (1.1.0)
rack (>= 0.9.1)
rack-livereload (0.3.15)
rack
rack-test (0.6.2)
rack (>= 1.0)
rb-fsevent (0.9.4)
...
...
@@ -99,6 +131,7 @@ GEM
ffi (>= 0.5.0)
redcarpet (3.1.2)
ref (1.0.5)
rouge (1.7.2)
sass (3.4.5)
sprockets (2.12.2)
hike (~> 1.2)
...
...
@@ -133,11 +166,4 @@ PLATFORMS
ruby
DEPENDENCIES
highline (~> 1.6)
less (~> 2.6)
middleman (~> 3.3)
middleman-minify-html (~> 3.4)
rack-contrib (~> 1.1)
redcarpet (~> 3.1)
therubyracer (~> 0.12)
thin (~> 1.6)
middleman-hashicorp!
website/config.rb
View file @
37eb3043
require
"net/http"
raise
"PACKER_VERSION must be set."
if
!
ENV
[
"PACKER_VERSION"
]
#-------------------------------------------------------------------------
# Download the list of Packer downloads
#-------------------------------------------------------------------------
$packer_files
=
{}
$packer_os
=
[]
if
!
ENV
[
"PACKER_DISABLE_DOWNLOAD_FETCH"
]
raise
"BINTRAY_API_KEY must be set."
if
!
ENV
[
"BINTRAY_API_KEY"
]
http
=
Net
::
HTTP
.
new
(
"dl.bintray.com"
,
80
)
req
=
Net
::
HTTP
::
Get
.
new
(
"/mitchellh/packer/"
)
req
.
basic_auth
"mitchellh"
,
ENV
[
"BINTRAY_API_KEY"
]
response
=
http
.
request
(
req
)
response
.
body
.
split
(
"
\n
"
).
each
do
|
line
|
next
if
line
!~
/\/mitchellh\/packer\/packer_(
#{
Regexp
.
quote
(
ENV
[
"PACKER_VERSION"
])
}
.+?)'/
filename
=
$1
.
to_s
os
=
filename
.
split
(
"_"
)[
1
]
next
if
os
==
"SHA256SUMS"
$packer_files
[
os
]
||=
[]
$packer_files
[
os
]
<<
filename
end
$packer_os
=
[
"darwin"
,
"linux"
,
"windows"
]
&
$packer_files
.
keys
$packer_os
+=
$packer_files
.
keys
$packer_os
.
uniq!
$packer_files
.
each
do
|
key
,
value
|
value
.
sort!
end
end
#-------------------------------------------------------------------------
# Configure Middleman
#-------------------------------------------------------------------------
set
:css_dir
,
'stylesheets'
set
:js_dir
,
'javascripts'
set
:images_dir
,
'images'
# Use the RedCarpet Markdown engine
set
:markdown_engine
,
:redcarpet
set
:markdown
,
:fenced_code_blocks
=>
true
,
:with_toc_data
=>
true
# Build-specific configuration
configure
:build
do
activate
:asset_hash
activate
:minify_css
activate
:minify_html
activate
:minify_javascript
end
#-------------------------------------------------------------------------
# Helpers
#-------------------------------------------------------------------------
helpers
do
def
download_arch
(
file
)
parts
=
file
.
split
(
"_"
)
return
""
if
parts
.
length
!=
3
parts
[
2
].
split
(
"."
)[
0
]
end
def
download_os_human
(
os
)
if
os
==
"darwin"
return
"Mac OS X"
elsif
os
==
"freebsd"
return
"FreeBSD"
elsif
os
==
"openbsd"
return
"OpenBSD"
elsif
os
==
"Linux"
return
"Linux"
elsif
os
==
"windows"
return
"Windows"
else
return
os
end
end
def
download_url
(
file
)
"https://dl.bintray.com/mitchellh/packer/packer_
#{
file
}
"
end
def
latest_version
ENV
[
"PACKER_VERSION"
]
end
activate
:hashicorp
do
|
h
|
h
.
version
=
'0.7.1'
h
.
bintray_repo
=
'mitchellh/packer'
h
.
bintray_user
=
'mitchellh'
h
.
bintray_key
=
ENV
[
'BINTRAY_API_KEY'
]
end
website/source/downloads.html.erb
View file @
37eb3043
...
...
@@ -17,19 +17,19 @@ page_title: "Downloads"
Below are all available downloads for the latest version of Packer
(
<%=
latest_version
%>
). Please download the proper package for your
operating system and architecture. You can find SHA256 checksums
for packages
<a
href=
"https://dl.bintray.com/mitchellh/packer/
packer_
<%=
latest_version
%>
_SHA256SUMS?direct"
>
here
</a>
.
for packages
<a
href=
"https://dl.bintray.com/mitchellh/packer/
<%=
latest_version
%>
_SHA256SUMS?direct"
>
here
</a>
.
</p>
</div>
</div>
<%
$packer_os
.
each
do
|
o
s
|
%>
<%
product_versions
.
each
do
|
os
,
version
s
|
%>
<div
class=
"row"
>
<div
class=
"span8 offset2 download"
>
<div
class=
"icon pull-left"
>
<%=
image_tag
"/images/icons/icon_
#{
os
}
.png"
%>
</div>
<div
class=
"icon pull-left"
>
<%=
system_icon
(
os
)
%>
</div>
<div
class=
"details"
>
<h2
class=
"os-name"
>
<%=
download_os_human
(
os
)
%>
</h2>
<h2
class=
"os-name"
>
<%=
os
%>
</h2>
<ul>
<%
$packer_files
[
os
].
each
do
|
file
|
%>
<li><a
href=
"
<%=
download_url
(
file
)
%>
"
>
<%=
download_arch
(
file
)
%>
</a></li>
<%
versions
.
each
do
|
url
|
%>
<li><a
href=
"
<%=
url
%>
"
>
<%=
arch_for_filename
(
url
)
%>
</a></li>
<%
end
%>
</ul>
<div
class=
"clearfix"
></div>
...
...
website/source/index.html.erb
View file @
37eb3043
...
...
@@ -27,7 +27,7 @@
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"span6"
>
<img
src=
"/images/screenshots/vmware_and_virtualbox.png"
>
<%=
image_tag
'screenshots/vmware_and_virtualbox.png'
%
>
</div>
<div
class=
"span6"
>
...
...
@@ -61,7 +61,7 @@
</div>
<div
class=
"span6"
>
<img
src=
"/images/screenshots/works_with.png"
>
<%=
image_tag
'screenshots/works_with.png'
%
>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment