Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

docker-machine-nfs 0.2.0 (new formula) #49920

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Library/Formula/docker-machine-nfs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class DockerMachineNfs < Formula
desc "Activates NFS on docker-machine"
homepage "https://github.com/adlogix/docker-machine-nfs"
url "https://github.com/adlogix/docker-machine-nfs/archive/0.2.0.tar.gz"
sha256 "ebc023657c044e706c8d9bc275d6b96de9d1f5178c7f6a90a8ce3bc167d1ec74"

def install
bin.install "docker-machine-nfs.sh" => "docker-machine-nfs"
end

test do
system "#{bin}/docker-machine-nfs"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can’t we write a test that does something more substantial than just printing the help?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bfontaine the script doesn't have a no-op mode, so any testing would involve making changes to the user's system. would printing the help and checking to make sure that a particular string matches the output be preferable?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Let’s leave it as is then.

end
end