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
e528cd7c
Commit
e528cd7c
authored
Jun 25, 2014
by
Jack Pearkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-processor/vagrant-cloud: fix artifact
parent
46535e3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
post-processor/vagrant-cloud/artifact.go
post-processor/vagrant-cloud/artifact.go
+6
-7
No files found.
post-processor/vagrant-cloud/artifact.go
View file @
e528cd7c
...
...
@@ -2,19 +2,18 @@ package vagrantcloud
import
(
"fmt"
"os"
)
const
BuilderId
=
"pearkes.post-processor.vagrant-cloud"
type
Artifact
struct
{
Path
string
Tag
string
Provider
string
}
func
NewArtifact
(
provider
,
path
string
)
*
Artifact
{
func
NewArtifact
(
provider
,
tag
string
)
*
Artifact
{
return
&
Artifact
{
Path
:
path
,
Tag
:
tag
,
Provider
:
provider
,
}
}
...
...
@@ -24,7 +23,7 @@ func (*Artifact) BuilderId() string {
}
func
(
a
*
Artifact
)
Files
()
[]
string
{
return
[]
string
{
a
.
Path
}
return
nil
}
func
(
a
*
Artifact
)
Id
()
string
{
...
...
@@ -32,9 +31,9 @@ func (a *Artifact) Id() string {
}
func
(
a
*
Artifact
)
String
()
string
{
return
fmt
.
Sprintf
(
"'%s'
provider box: %s"
,
a
.
Provider
,
a
.
Path
)
return
fmt
.
Sprintf
(
"'%s'
: %s"
,
a
.
Provider
,
a
.
Tag
)
}
func
(
a
*
Artifact
)
Destroy
()
error
{
return
os
.
Remove
(
a
.
Path
)
return
nil
}
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